Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/promise

Index

References

Functions

References

Renames and re-exports isPromise

Functions

  • isPromise(test: any): test is Promise<any>
  • Checks if test is Promise.

    example
     isPromise({});                 //=> false
    isPromise(Promise.resolve()); //=> true

    Parameters

    • test: any

      The value to check.

    Returns test is Promise<any>

    Returns true if test is Promise, else false.

Generated using TypeDoc