vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function transform

    • Transform an iterator by applying a map and/or filter function to each item in the iterator. The map and filter functions are applied in the order they are specified

      Type Parameters

      • T
      • K = T

      Parameters

      • itr: Iterable<T>

        Iterator to transform

      • transformer: { filter?(item: T, index: number): any; map?(item: T, index: number): K }

        Transformer object containing the filter and/or map functions

      Returns Iterable<K>

      Transformed iterator