All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internals.create-non-enumerable-property.js Maven / Gradle / Ivy

There is a newer version: 3.39.0
Show newest version
'use strict';
var DESCRIPTORS = require('../internals/descriptors');
var definePropertyModule = require('../internals/object-define-property');
var createPropertyDescriptor = require('../internals/create-property-descriptor');

module.exports = DESCRIPTORS ? function (object, key, value) {
  return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
  object[key] = value;
  return object;
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy