Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Iterware<T>

Type parameters

  • T

Hierarchy

  • Iterware

Implemented by

Index

Methods

Methods

each

  • each(fn: (item: T, index: number, iter: Iterware<T>) => boolean, thisArg?: any): boolean
  • Performs the specified action for each element in an Iterware.

    Parameters

    • fn: (item: T, index: number, iter: Iterware<T>) => boolean

      A function be called for each item in Iterware until the function returns false, or until the end of the Iterware.

        • (item: T, index: number, iter: Iterware<T>): boolean
        • Parameters

          • item: T
          • index: number
          • iter: Iterware<T>

          Returns boolean

    • Optional thisArg: any

      An object passed to the function. If thisArg is omitted, Iterware object is used as the this value.

    Returns boolean

    if the function return false, return false.