Vertex Viewer SDK
    Preparing search index...

    Function ifDefined

    • Returns a mapper that invokes a function if the input is not null or not undefined.

      Type Parameters

      • T
      • R

      Parameters

      • mapper: Func<T, R | null | undefined>

        A mapping function.

      Returns Func<T | null | undefined, R | null | undefined>