摘要:
function getRawType(value) { return Object.prototype.toString.call(value).slice(8, -1)}//getoRawType([]) ==> Array 阅读全文
摘要:
function isObjectLike(value) { return value != null && typeof value == 'object';} 阅读全文
摘要:
function isObject(value) { let type = typeof value; return value != null && (type == 'object' || type == 'function');} 阅读全文
摘要:
function isPrimitive(value) { return isStatic(value) || typeof value 'symbol} 阅读全文
摘要:
function isStatic(value) { return( typeof value 'string' || typeof value 'number' || typeof value 'boolean' || typeof value 'undefined' || value null 阅读全文