SAP Cloud SDK for JavaScript - v4.1.1
    Preparing search index...
    • Get the first item from an array. Returns undefined, if the array is empty.

      Type Parameters

      • T

      Parameters

      • arr: T[]

        Array to get the first item of.

      Returns undefined | T

      Fist item of the array or undefined, if the array was empty.

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