About
This dependency lets you set multiple non-enumerable properties on an object at once. This can be done natively with the Object.defineProperties method.
It’s supported by all modern browsers and Node.js versions since ES5 (2009).
Example
// unless specified, added properties are non enumerable by default
Object.defineProperties(obj, {
foo: { value: "bar" },
baz: { value: "qux" }
});
Object.keys(obj); // []
While this dependency takes a 3rd argument to determine whether to overwrite existing properties, this functionality is very trivial to add yourself.
Not to mention this dependency comes with 7 dependencies of its own, which makes it a very heavy dependency for such a trivial task.