Vertex Viewer SDK
    Preparing search index...

    Function mapProp

    • Returns a mapper that will invoke a mapping function on an input's property.

      Type Parameters

      • T
      • P extends string | number | symbol
      • R

      Parameters

      • prop: P

        The name of the property to map over.

      • mapper: Func<T[P], R>

        A function that will be invoked with the property's value.

      Returns Func<T, R>