Vertex Viewer SDK
    Preparing search index...

    Function mapRequiredProp

    • Returns a mapper that will check if the given property is defined, and if so invoke the given mapping function.

      Type Parameters

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

      Parameters

      • prop: P

        The name of the property to map over.

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

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

      Returns Func<T, R>