@szilanor/stream
    Preparing search index...

    Function arrayMap

    • Returns an OperationFunction that yields array entries of the source Iterable transformed using the function.

      Type Parameters

      • T

        The type of the elements in the source Iterable.

      • O

        The type of the elements in the transformed Iterable.

      Parameters

      • mapper: (entry: T, index: number) => O

        The function to use to transform the entries.

      Returns OperationFunction<T[], O[]>

      An OperationFunction that yields array entries of the source Iterable transformed using the function.

      const result = arrayMap<number, string>([1, 2, 3], (value) => value.toString());
      console.log(result); // ["1", "2", "3"]