Skip to main content

Objects

import { deepClone, deepMerge, isPlainObject } from '@rtorcato/js-common/objects'

Exports

NameSummary
deepCloneDeep clones a value using the native structuredClone algorithm.
deepMergeDeeply merges two objects.
isPlainObjectReturns true if the value is a plain object (not null, not array, not function).
omitReturns a shallow copy of an object with the given keys omitted.
pickReturns a shallow copy of an object with only the given keys.