Flattens a array: [1,[2,[3,4]],5] will become [1,2,3,4,5]. Non primitive values are copied by reference.

  • Parameters

    • input: any[]

      Array to be flattened.

    Returns any[]

    The flattened array.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.