has.js 205 B

1234567
  1. var toObject = require('../internals/to-object');
  2. var hasOwnProperty = {}.hasOwnProperty;
  3. module.exports = Object.hasOwn || function hasOwn(it, key) {
  4. return hasOwnProperty.call(toObject(it), key);
  5. };