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: T

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.