Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

has-own-property.js 434B

123456789101112
  1. 'use strict';
  2. var uncurryThis = require('../internals/function-uncurry-this');
  3. var toObject = require('../internals/to-object');
  4. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  5. // `HasOwnProperty` abstract operation
  6. // https://tc39.es/ecma262/#sec-hasownproperty
  7. // eslint-disable-next-line es/no-object-hasown -- safe
  8. module.exports = Object.hasOwn || function hasOwn(it, key) {
  9. return hasOwnProperty(toObject(it), key);
  10. };