Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "first"

Index

Functions

Functions

first

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

    Type parameters

    • T

    Parameters

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

    Returns T