• Creates a push iterable with the values of items of the given indexed list.

    Item value is the result of provided function call, except false, null, and undefined which are filtered out.

    This can be used as a more effective mapIndexed / filterIt combination.

    Type Parameters

    • T

      Indexed items type.

    • TValue = T

      A type of item values.

    Parameters

    • indexed: IndexedItemList<T>

      A source indexed items list.

    • valueOf: ((this, element) => undefined | null | false | TValue)

      A function that values items, taking the source item as the only parameter, and returning either its value, or false/null/undefined to filter it out.

        • (this, element): undefined | null | false | TValue
        • Parameters

          • this: void
          • element: T

          Returns undefined | null | false | TValue

    Returns PushIterable<TValue>

    New push iterable with the item values.

Generated using TypeDoc