Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "last"

Index

Functions

Functions

last

  • last<T>(this: Sequence<T>, predicate?: undefined | function): T
  • Returns the last element of the sequence or the last element matching predicate if present, otherwise throws an error.

    Type parameters

    • T

    Parameters

    • this: Sequence<T>
    • Optional predicate: undefined | function

    Returns T