Skip to content

node-zendesk • Docs


node-zendesk / clients/helpers / flatten

Function: flatten() ​

flatten(array): any[]

Flattens a nested array to a single-level array.

Parameters ​

• array: any[]

The array to be flattened.

Returns ​

any[]

  • A new array containing all elements from the input array, with any nested arrays recursively flattened to a single level.

Defined in ​

clients/helpers.d.ts:7

Released under the MIT License.