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

    Returns

    The flattened array.

    Parameters

    • input: any[]

      Array to be flattened.

    Returns any[]

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