@aracna/core - v1.5.0
    Preparing search index...

    Function getArrayLastItem

    • Returns the last item of an array. Optionally you can pass a fallback value that will be returned if the array is empty.

      Aracna Reference

      Type Parameters

      • T

      Parameters

      • array: T[]

      Returns T | undefined

    • Returns the last item of an array. Optionally you can pass a fallback value that will be returned if the array is empty.

      Aracna Reference

      Type Parameters

      • T

      Parameters

      • array: T[]
      • fallback: T

      Returns T