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.

create-non-enumerable-property.js 452B

1234567891011
  1. 'use strict';
  2. var DESCRIPTORS = require('../internals/descriptors');
  3. var definePropertyModule = require('../internals/object-define-property');
  4. var createPropertyDescriptor = require('../internals/create-property-descriptor');
  5. module.exports = DESCRIPTORS ? function (object, key, value) {
  6. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  7. } : function (object, key, value) {
  8. object[key] = value;
  9. return object;
  10. };