implementation.js 328 B

1234567891011
  1. 'use strict';
  2. var ToObject = require('es-abstract/2023/ToObject');
  3. var ToPropertyKey = require('es-abstract/2023/ToPropertyKey');
  4. var HasOwnProperty = require('es-abstract/2023/HasOwnProperty');
  5. module.exports = function hasOwn(O, P) {
  6. var obj = ToObject(O);
  7. var key = ToPropertyKey(P);
  8. return HasOwnProperty(obj, key);
  9. };