Options
All
  • Public
  • Public/Protected
  • All
Menu

Module flattenDeep

Index

References

Functions Array

References

Renames and re-exports flattenDeep

Array Functions

  • flattenDeep(array: any[]): any[]
  • Recursively flattens array.

    since

    5.4.0

    see

    flatMap,flatMapDeep,flatMapDepth,flatten,flattenDepth

    example
    flattenDeep([1, [2, [3, [4]], 5]])
    // => [1, 2, 3, 4, 5]

    Parameters

    • array: any[]

      The array to flatten.

    Returns any[]

    Returns the new flattened array.