SAP Cloud SDK for JavaScript - v4.1.1
    Preparing search index...

    Variable flattenConst

    flatten: (input: any[]) => any[]

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

    Type declaration

      • (input: any[]): any[]
      • Parameters

        • input: any[]

          Array to be flattened.

        Returns any[]

        The flattened array.

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