Opal-Estate-Pro/node_modules/is-promise
2019-09-13 09:44:33 +07:00
..
.npmignore uapte 2019-09-13 09:44:33 +07:00
.travis.yml uapte 2019-09-13 09:44:33 +07:00
index.js uapte 2019-09-13 09:44:33 +07:00
LICENSE uapte 2019-09-13 09:44:33 +07:00
package.json uapte 2019-09-13 09:44:33 +07:00
readme.md uapte 2019-09-13 09:44:33 +07:00

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

var isPromise = require('is-promise');

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

License

MIT