wallet-core/node_modules/is-promise
2017-05-28 00:40:43 +02:00
..
.npmignore add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
.travis.yml add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
index.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
LICENSE add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
package.json add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
readme.md add linting (and some initial fixes) 2017-05-28 00:40:43 +02: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