About
This dependency reimplents the native Object.defineProperty()
method. It is supported by all modern browsers and Node.js versions since about 6 years.
// Define a non-enumerable property on an object
const obj = {};
Object.defineProperty(obj, "foo", {
value: "bar",
enumerable: false
});
console.log(obj.foo); // "bar"
console.log(Object.keys(obj)); // []
Additionally it needs 7 additional dependencies to do what Object.defineProperty
can do natively.