Takaro - v0.4.11
    Preparing search index...
    each: {
        <T>(collection: T[], iteratee?: ArrayIterator<T, any>): T[];
        (collection: string, iteratee?: StringIterator<any>): string;
        <T>(collection: List<T>, iteratee?: ListIterator<T, any>): List<T>;
        <T extends object>(collection: T, iteratee?: ObjectIterator<T, any>): T;
        <T, TArray extends T[] | null | undefined>(
            collection: TArray & (T[] | null | undefined),
            iteratee?: ArrayIterator<T, any>,
        ): TArray;
        <TString extends string | null | undefined>(
            collection: TString,
            iteratee?: StringIterator<any>,
        ): TString;
        <T, TList extends List<T> | null | undefined>(
            collection: TList & (List<T> | null | undefined),
            iteratee?: ListIterator<T, any>,
        ): TList;
        <T extends object>(
            collection: T | null | undefined,
            iteratee?: ObjectIterator<T, any>,
        ): T | null | undefined;
    }

    Type Declaration

      • <T>(collection: T[], iteratee?: ArrayIterator<T, any>): T[]
      • Iterates over elements of collection invoking iteratee for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.

        Note: As with other "Collections" methods, objects with a "length" property are iterated like arrays. To avoid this behavior _.forIn or _.forOwn may be used for object iteration.

        Type Parameters

        • T

        Parameters

        • collection: T[]

          The collection to iterate over.

        • Optionaliteratee: ArrayIterator<T, any>

          The function invoked per iteration.

        Returns T[]

        _.each

      • (collection: string, iteratee?: StringIterator<any>): string
      • Parameters

        • collection: string
        • Optionaliteratee: StringIterator<any>

        Returns string

        _.forEach

      • <T>(collection: List<T>, iteratee?: ListIterator<T, any>): List<T>
      • Type Parameters

        • T

        Parameters

        • collection: List<T>
        • Optionaliteratee: ListIterator<T, any>

        Returns List<T>

        _.forEach

      • <T extends object>(collection: T, iteratee?: ObjectIterator<T, any>): T
      • Type Parameters

        • T extends object

        Parameters

        • collection: T
        • Optionaliteratee: ObjectIterator<T, any>

        Returns T

        _.forEach

      • <T, TArray extends T[] | null | undefined>(
            collection: TArray & (T[] | null | undefined),
            iteratee?: ArrayIterator<T, any>,
        ): TArray
      • Type Parameters

        • T
        • TArray extends T[] | null | undefined

        Parameters

        • collection: TArray & (T[] | null | undefined)
        • Optionaliteratee: ArrayIterator<T, any>

        Returns TArray

        _.forEach

      • <TString extends string | null | undefined>(
            collection: TString,
            iteratee?: StringIterator<any>,
        ): TString
      • Type Parameters

        • TString extends string | null | undefined

        Parameters

        • collection: TString
        • Optionaliteratee: StringIterator<any>

        Returns TString

        _.forEach

      • <T, TList extends List<T> | null | undefined>(
            collection: TList & (List<T> | null | undefined),
            iteratee?: ListIterator<T, any>,
        ): TList
      • Type Parameters

        • T
        • TList extends List<T> | null | undefined

        Parameters

        • collection: TList & (List<T> | null | undefined)
        • Optionaliteratee: ListIterator<T, any>

        Returns TList

        _.forEach

      • <T extends object>(
            collection: T | null | undefined,
            iteratee?: ObjectIterator<T, any>,
        ): T | null | undefined
      • Type Parameters

        • T extends object

        Parameters

        • collection: T | null | undefined
        • Optionaliteratee: ObjectIterator<T, any>

        Returns T | null | undefined

        _.forEach

    _.forEach