codeql-action/node_modules/is-promise
github-actions[bot] 0da815296a Update checked-in dependencies 2022-02-24 17:03:29 +00:00
..
LICENSE replace jest with ava 2020-05-13 11:13:27 +01:00
index.d.ts Fix dependabot issues 2021-10-25 08:56:16 -07:00
index.js replace jest with ava 2020-05-13 11:13:27 +01:00
index.mjs replace jest with ava 2020-05-13 11:13:27 +01:00
package.json Update checked-in dependencies 2022-02-24 17:03:29 +00:00
readme.md replace jest with ava 2020-05-13 11:13:27 +01:00

readme.md

is-promise

Test whether an object looks like a promises-a+ promise

Build Status Dependency Status NPM version

Installation

$ npm install is-promise

You can also use it client side via npm.

API

import isPromise from 'is-promise';

isPromise(Promise.resolve());//=>true
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>false

License

MIT