Type Utils
    Preparing search index...

    Function isPromise

    • Type Parameters

      • T = any

      Parameters

      • promise: any

      Returns promise is Promise<T>

      marcuspoehls marcus@futurestud.io

      Determine whether the given promise is a Promise.

      isPromise('no') // false
      isPromise(new Promise(() => {})) // true