Every line of 'hasownproperty 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.
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 };
28 export function hasOwnProperty(obj: object, key: string): boolean { 29 return {}.hasOwnProperty.call(obj, key); 30 }
209 function hasOwnProperty(obj, prop) { 210 return !!obj && internalHasOwnProperty.call(obj, prop); 211 }
599 function hasOwnProperty(obj, prop) { 600 return Object.prototype.hasOwnProperty.call(obj, prop); 601 }
43 export function hasOwnProperty(value, prop) { 44 return !!value && Object.prototype.hasOwnProperty.call(value, prop); 45 }
44 exports.hasOwnProperty = function hasOwnProperty(obj, property) { 45 return _hasOwnProperty.call(obj, property); 46 };
5 export function hasOwnProperty(obj, propName) { 6 return Object.prototype.hasOwnProperty.call(obj, propName) 7 }
109 function hasOwnFunctionProperty(obj, key) { 110 return obj.hasOwnProperty(key) && typeof obj[key] === 'function'; 111 }
55 export function hasProp(obj, key) { 56 return obj && obj.hasOwnProperty(key); 57 }
63 export function hasOwn(obj, key) { 64 return hasOwn_.call(obj, key); 65 }