omitBy es-toolkit
Returns a new object containing only the properties that do not satisfy the condition function.
Usage
omitBy(obj, shouldOmit)
Use omitBy when you want to selectively exclude properties from an object based on a condition function. Properties for which the condition function returns true are excluded, and only properties that return false are included in the new object.
Parameters
The object to filter properties from.
A condition function that determines whether to exclude a property. Receives the value and key, and returns true to exclude, false to keep.
Returns
A new object consisting of properties that do not satisfy the condition function.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.