Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/HasOwnProperty.js
r0c6b92a r79a0317 5 5 var hasOwn = require('hasown'); 6 6 7 var IsPropertyKey = require('./IsPropertyKey');8 var Type = require('./Type');7 var isObject = require('../helpers/isObject'); 8 var isPropertyKey = require('../helpers/isPropertyKey'); 9 9 10 10 // https://262.ecma-international.org/6.0/#sec-hasownproperty 11 11 12 12 module.exports = function HasOwnProperty(O, P) { 13 if ( Type(O) !== 'Object') {13 if (!isObject(O)) { 14 14 throw new $TypeError('Assertion failed: `O` must be an Object'); 15 15 } 16 if (! IsPropertyKey(P)) {16 if (!isPropertyKey(P)) { 17 17 throw new $TypeError('Assertion failed: `P` must be a Property Key'); 18 18 }
Note:
See TracChangeset
for help on using the changeset viewer.