ljharb

ljharb/define-properties

Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.

JavaScript
21
9
MIT License

`define-properties` is a utility for defining multiple non-enumerable properties on an object at once, using `Object.defineProperty` when available and falling back to standard assignment in older environments. It allows selective overriding of existing properties through predicate functions and is particularly useful for library authors who need to extend objects without modifying their existing properties or enumerability. The library is designed for JavaScript developers working with object property management, especially those building libraries or frameworks that need to add properties to objects in a controlled, non-intrusive manner.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ljharb/define-properties

Account's avatar
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
Account's avatar
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Account's avatar
An Object.keys replacement, in case Object.keys is not available. From https://github.com/es-shims/es5-shim
Account's avatar
My shareable eslint config
Account's avatar
Use `npx aud` instead of `npm audit`, whether you have a lockfile or not!
Account's avatar
Command line tool for generating a changelog from git tags and commit history
Account's avatar
Detect if we were run as a result of `npm publish`
Account's avatar
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
the Istanbul command line interface
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on ljharb/define-properties

Top contributors

ljharb's profile
ljharb
134 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet