@yookue/ts-lang-utils
    Preparing search index...

    Function isPromise

    • Returns whether the given object is a promise

      Parameters

      • object: any

        the object to check

      Returns boolean

      whether the given object is a promise

      David Hsing

      isPromise({});    // false
      isPromise('foobar'); // false