Every line of 'js hasownproperty' 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.
56 hasOwnProperty = function hasOwnProperty(obj, prop){ 57 // convert primatives to objects so IN operator will work 58 obj = Object(obj); 59 var constructor = obj.constructor; 60 return property in obj && 61 ((constructor && constructor.prototype) ? 62 obj[prop] !== constructor.prototype[prop] : 63 obj[prop] !== op[prop]); 64 };
209 function hasOwnProperty(obj, prop) { 210 return !!obj && internalHasOwnProperty.call(obj, prop); 211 }
28 export function hasOwnProperty(obj: object, key: string): boolean { 29 return {}.hasOwnProperty.call(obj, key); 30 }
44 exports.hasOwnProperty = function hasOwnProperty(obj, property) { 45 return _hasOwnProperty.call(obj, property); 46 };
43 export function hasOwnProperty(value, prop) { 44 return !!value && Object.prototype.hasOwnProperty.call(value, prop); 45 }
599 function hasOwnProperty(obj, prop) { 600 return Object.prototype.hasOwnProperty.call(obj, prop); 601 }
55 export function hasProp(obj, key) { 56 return obj && obj.hasOwnProperty(key); 57 }
5 export function hasOwnProperty(obj, propName) { 6 return Object.prototype.hasOwnProperty.call(obj, propName) 7 }
8 function has(o, key) { return o !== null && hasOwnProperty.call(o, key); }
291 function has(obj, key) { 292 return ( 293 Object.prototype.hasOwnProperty.call(obj, key) && obj[key] !== undefined 294 ); 295 }