Sha256: 5d5ec42c4d2ee3b4ae4cb3b3bcd2eee14fbbae94e3a0fb9101be9ec29d08e531

Contents?: true

Size: 681 Bytes

Versions: 49

Compression:

Stored size: 681 Bytes

Contents

function _defineEnumerableProperties(obj, descs) {
  for (var key in descs) {
    var desc = descs[key];
    desc.configurable = desc.enumerable = true;
    if ("value" in desc) desc.writable = true;
    Object.defineProperty(obj, key, desc);
  }

  if (Object.getOwnPropertySymbols) {
    var objectSymbols = Object.getOwnPropertySymbols(descs);

    for (var i = 0; i < objectSymbols.length; i++) {
      var sym = objectSymbols[i];
      var desc = descs[sym];
      desc.configurable = desc.enumerable = true;
      if ("value" in desc) desc.writable = true;
      Object.defineProperty(obj, sym, desc);
    }
  }

  return obj;
}

module.exports = _defineEnumerableProperties;

Version data entries

49 entries across 49 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
disco_app-0.18.0 test/dummy/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
disco_app-0.18.2 test/dummy/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.7 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.6 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.5 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.4 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.3 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.2 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.1 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.3.5 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-5.0.0 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.3.4 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.3.3 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.3.2 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.3.1 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.3 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.2.3 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
tang-0.2.1 spec/tang_app/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
trusty-cms-4.2.2 node_modules/@babel/runtime/helpers/defineEnumerableProperties.js