Objects
Objects: picking, omitting, mapping values, emptiness and equality.
| Export | What it does |
|---|---|
deepMerge | Applies a partial patch to nested settings, such as saved preferences over the defaults: plain objects are merged at every depth, other values replace, undefined keeps. |
isDeepEqual | Checks whether two values are equal at every depth: primitives (NaN equals NaN), arrays, objects with the same prototype, Date, RegExp, Map, Set and typed arrays. |
isEmpty | Checks whether a container holds nothing: an empty string, array, Map, Set or object. |
isShallowEqual | Checks whether two values are equal at the first level, with Object.is: skips an update when a new object carries the same values as the previous one. |
mapValues | Transforms every value of an object, keeping its keys. |
omit | Copies an object without some of its properties, without delete, which slows down V8. |
pick | Copies some properties of an object into a new one. |