Sha256: badfff04a2212532389d4e3756488390cc442c7b211e99eb319857141a86f1bc
Contents?: true
Size: 649 Bytes
Versions: 83
Compression:
Stored size: 649 Bytes
Contents
export default 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; }
Version data entries
83 entries across 82 versions & 12 rubygems