Skip to content

export Function

nest ​

Reads an object including nested objects but ignores classes, Return the duplicated and modified object.

Constructor ​

ts
nest( object, additional, fn )
ParameterTypeDescription
object = {}anyThe object to read and nest.
additionalNestingAdditional options on how to read the object.
fnNestCallbackThe callback function to call whenever a key and value has been read. Additional information is available.

Return: any