es-stl - v3.0.3
    Preparing search index...

    Type Alias Mapper<Input, Output>

    Mapper: (value: Input) => Output

    Function that transforms one value into another.

    Type Parameters

    • Input

      Input value type.

    • Output

      Transformed value type.

    Type Declaration

    const toLabel: Mapper<number, string> = (value) => `item-${value}`;