@luolapeikko/ts-common
    Preparing search index...

    Type Alias MapCallback<Target, Source>

    MapCallback: (
        value: Source[number],
        index: number,
        array: readonly Source[number][],
    ) => Target

    Array map callback function

    Type Parameters

    • Target

      The type of the array to map to

    • Source extends AnyArrayType

      The type of the array to map from

    Type declaration

      • (value: Source[number], index: number, array: readonly Source[number][]): Target
      • Parameters

        • value: Source[number]

          The value to map

        • index: number

          The index of the value in the array

        • array: readonly Source[number][]

          The array being mapped

        Returns Target

    v0.2.0