Skip to content

Objects ​

Objects: picking, omitting, mapping values, emptiness and equality.

ExportWhat it does
deepMergeApplies 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.
isDeepEqualChecks 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.
isEmptyChecks whether a container holds nothing: an empty string, array, Map, Set or object.
isShallowEqualChecks 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.
mapValuesTransforms every value of an object, keeping its keys.
omitCopies an object without some of its properties, without delete, which slows down V8.
pickCopies some properties of an object into a new one.

Generated from the JSDoc of the sources.