Every line of 'hasownproperty in js' 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.
55 export function hasProp(obj, key) { 56 return obj && obj.hasOwnProperty(key); 57 }
209 function hasOwnProperty(obj, prop) { 210 return !!obj && internalHasOwnProperty.call(obj, prop); 211 }
6 function hasKeys(obj){ 7 var key; 8 9 for (key in obj){ 10 if ( obj.hasOwnProperty(key) ){ 11 return true; 12 } 13 } 14 return false; 15 }
42 export function hasOwn(obj, key) { 43 return hasOwnProperty.call(obj, key); 44 }
11 function hasOwn (obj, key) { 12 return Object.prototype.hasOwnProperty.call(obj, key); 13 }
5 function hasOwn(obj, key) { 6 return Object.prototype.hasOwnProperty.call(obj, key); 7 }
63 export function hasOwn(obj, key) { 64 return hasOwn_.call(obj, key); 65 }
8 export function hasOwn(obj: any, key: string): boolean { 9 return hasOwnProperty.call(obj, key) 10 }
28 export function hasOwnProperty(obj: object, key: string): boolean { 29 return {}.hasOwnProperty.call(obj, key); 30 }
43 export function hasOwnProperty(value, prop) { 44 return !!value && Object.prototype.hasOwnProperty.call(value, prop); 45 }