Sha256: 5e2ea8e10a244ba96b6b30c6251beb8429a6d4467bf838aeed91edac23c0cd0e
Contents?: true
Size: 548 Bytes
Versions: 243
Compression:
Stored size: 548 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var has = require('has'); var IsPropertyKey = require('./IsPropertyKey'); var Type = require('./Type'); // https://262.ecma-international.org/6.0/#sec-hasownproperty module.exports = function HasOwnProperty(O, P) { if (Type(O) !== 'Object') { throw new $TypeError('Assertion failed: `O` must be an Object'); } if (!IsPropertyKey(P)) { throw new $TypeError('Assertion failed: `P` must be a Property Key'); } return has(O, P); };
Version data entries
243 entries across 27 versions & 2 rubygems