Every line of 'js check if object' 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.
137 function notObject(object) { 138 return ((typeof object != "object" && typeof object != "function") || object === null); 139 }
876 export function checkObject(object: EezObject): IMessage[] { 877 if (isArray(object)) { 878 const check = object._propertyInfo!.check; 879 if (check) { 880 return check(object); 881 } 882 } else { 883 if ((object as any).check) { 884 return (object as any).check(); 885 } 886 } 887 return []; 888 }
20 function isObject(o){ 21 return o != null && typeof o === 'object' || typeof o === 'function'; 22 }
70 export function isObject (object) { 71 return object !== null && typeof object === 'object' 72 }
220 function isObject(obj) { 221 var type = Object.prototype.toString.call(obj).split(' ')[1].slice(0, -1); 222 return obj === Object(obj) && type != 'Array' && type != 'Function' && type != 'RegExp' && type != 'HTMLUnknownElement'; 223 };
46 function isObject(o) { 47 return typeof o === 'object' ? o !== null : typeof o === 'function'; 48 }
3 function isObject (o) { 4 return o && Object.prototype.toString.call(o) === '[object Object]'; 5 }
50 function isObject(obj) { 51 for(var prop in obj) { 52 if (Object.prototype.hasOwnProperty.call(obj, prop)) { 53 return true; 54 } 55 } 56 return false; 57 }
3 export function isObject(obj: unknown): obj is Record { 4 return obj !== null && obj && typeof obj === 'object' && !Array.isArray(obj); 5 }
662 function isObject(obj) { 663 return testObject(obj, 'Object'); 664 }