Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lastOrNull"

Index

Functions

Functions

lastOrNull

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

    Type parameters

    • T

    Parameters

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

    Returns T | null