core-utils
    Preparing search index...
    • Turns a null-returning promise into a promise returning undefined.

      Some libraries we use return promises or promise-like objects that can resolve to null. This function converts them to undefined.

      Type Parameters

      • T

      Parameters

      • value: PromiseLike<T | null>

      Returns Promise<T | undefined>