Search results
42 packages found
ES spec-compliant shim for Object.hasOwn
A robust, ES3 compatible, "has own property" predicate.
Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js
Set nested properties on an object using dot notation.
- bury
- deep-get-set
- deep-object
- deep-property
- deep-set-in
- deep-set
- deephas
- dot-prop
- dot2val
- es5-dot-prop
- get
- getsetdeep
- has
- hasown
- View more
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Test if an object has a specified property.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- object
- obj
- has
- hasown
- hasownproperty
- property
- View more
Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js.
Common JavaScript/TypeScript helper functions for better minification
(fork of omit-empty) Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects.
Reduces an object to a value that is the accumulated result of running each property in the object through a callback. Executes the callback function once for each own enumerable property in the object, receiving four arguments: the initial value (or valu
- accumulate
- accumulator
- callback
- cb
- find
- for-in
- for-own
- has
- has-own
- hasOwn
- index
- iterate
- iterator
- javascript
- View more
Create a new object filtered to have only properties for which the callback returns true.
Create a new object filtered to have only properties for which the callback returns true.
Test if an object has a specified method name, either own or inherited.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- object
- obj
- has
- hasown
- hasownproperty
- hasprop
- View more
Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects.
Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
Test if an object has a specified property, either own or inherited.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- object
- obj
- has
- hasown
- hasownproperty
- hasprop
- View more
Create a new object filtered to have only properties for which the callback returns true.
Test if an object has a specified method name.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- object
- obj
- has
- hasown
- hasownproperty
- property
- View more