
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
@jumpn/utils-composite
Advanced tools
Composite utilities (immutability, fp helpers)
NOTE: All the functions described in API are curried
type Composite = Array<*> | Object;
type Key = number | string;
type Path = Array<Key>;
Get property value of given key.
Parameters
key
Keycomposite
CompositeReturns any
Returns value located at the given path or undefined otherwise.
Parameters
path
Pathcomposite
CompositeReturns any
Get own enumerable keys.
Parameters
composite
CompositeReturns Array<Key>
Returns true if value located at given path is strictly equal to the one specified.
Parameters
path
Pathvalue
anycomposite
CompositeReturns boolean
Returns true if key is included in composite's own enumerable ones, or false otherwise.
Parameters
key
Keycomposite
CompositeReturns boolean
Returns true if both composites have the same props or false otherwise.
Parameters
c1
Compositec2
CompositeReturns boolean
Returns a new composite with the result of having removed the property with the given key.
Parameters
key
Keycomposite
CompositeReturns Composite
Returns a new composite with the result of having removed the property located at the given path.
(This does the same as calling updateIn with updater:
() => updateIn.remove
)
Parameters
path
Pathcomposite
CompositeReturns Composite
Returns a new composite with the result of having updated the property with the given key with the specified value.
Parameters
key
Keyvalue
anycomposite
CompositeReturns Composite
Returns a new composite with the result of having updated the property located at the given path with the specified value.
(This does the same as calling updateIn with updater: () => value
)
Parameters
path
Pathvalue
anycomposite
CompositeReturns Composite
Returns a new composite with the same own enumerable props of the one given.
Parameters
composite
CReturns C
Returns true if both composites are of the same type (Array or Object) and their properties are strictly equal.
Parameters
c1
Compositec2
CompositeReturns boolean
Returns a new composite with the result of having updated the property value at the given path with the result of the call to updater function.
Entry removal is supported by returning updateIn.remove
symbol on updater
function.
Parameters
path
Pathupdater
function (prev: any): anycomposite
CompositeReturns Composite
MIT :copyright: Jumpn Limited / Mauro Titimoli (mauro@jumpn.com)
FAQs
Composite utilities (immutability, fp helpers)
We found that @jumpn/utils-composite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.