Every line of 'javascript isobject' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
78 function isObject(value){ 79 return value && typeof value == 'object' && value.constructor.name == 'Object'; 80 }
1 export function isObject(value) { 2 const type = typeof value; 3 return value != null && (type == 'object' || type == 'function'); 4 }
13 function isObject(object) { 14 return toString(object) === "[object Object]"; 15 }
70 export function isObject (object) { 71 return object !== null && typeof object === 'object' 72 }
4 export default function isobject(value) { 5 var type = typeof value; 6 return !!value && (type == "object" || type == "function"); 7 }
25 function isObject(val) { 26 return val && (typeof val === 'object' || isFunction(val)); 27 }
20 function isObject(o){ 21 return o != null && typeof o === 'object' || typeof o === 'function'; 22 }
32 function isObject(value) { 33 // avoid a V8 bug in Chrome 19-20 34 // https://code.google.com/p/v8/issues/detail?id=2291 35 var type = typeof value; 36 return type == 'function' || (value && type == 'object') || false; 37 }
50 export function isObject(o: any): o is object { 51 return o && typeof o === 'object' 52 }
16 export default function isObject(object) { 17 return (Object.prototype.toString.call(object) === '[object Object]'); 18 }