For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/object.md.

Object

clone
Creates a shallow copy of the given value.
cloneDeep
Creates a deep copy of the given value.
cloneDeepWith
Deeply clones the given value with a custom cloning function.
deepFreeze
Recursively freezes an object, making it and all nested objects and arrays immutable.
evolve
Applies a spec of transformation functions to matching keys of an object, returning a new object.
findKey
Finds the key of the first element that satisfies the given condition.
flattenObject
Converts a nested object into a flat object.
invert
Creates a new object with keys and values swapped.
mapKeys
Returns a new object with keys transformed through a function.
mapKeysAsync
Returns a new object with keys transformed through an async function.
mapValues
Returns a new object with values transformed through a function.
mapValuesAsync
Returns a new object with values transformed through an async function.
merge
Deeply merges the source object into the target object, modifying the target object.
mergeWith
Deeply merges the source object into the target object using a custom merge function, modifying the target object.
omit
Returns a new object excluding the specified keys.
omitBy
Returns a new object containing only the properties that do not satisfy the condition function.
pick
Returns a new object containing only the properties corresponding to the specified keys.
pickBy
Returns a new object containing only the properties that satisfy the condition function.
sortKeys
Creates a new object with the keys sorted.
toCamelCaseKeys
Returns a new object with all keys in objects and arrays converted to camelCase.
toConstantCaseKeys
Returns a new object with all keys in objects and arrays converted to CONSTANTCASE.
toKebabCaseKeys
Returns a new object with all keys in objects and arrays converted to kebab-case.
toMerged
Returns a new object with the source object deeply merged into a copy of the target object.
toPascalCaseKeys
Returns a new object with all keys in objects and arrays converted to PascalCase.
toSnakeCaseKeys
Returns a new object with all keys in objects and arrays converted to snakecase.