pixsy/node_modules/is-promise
synth-ruiner 495f1d958e initial 2017-12-22 17:22:08 +00:00
..
.npmignore initial 2017-12-22 17:22:08 +00:00
.travis.yml initial 2017-12-22 17:22:08 +00:00
LICENSE initial 2017-12-22 17:22:08 +00:00
index.js initial 2017-12-22 17:22:08 +00:00
package.json initial 2017-12-22 17:22:08 +00:00
readme.md initial 2017-12-22 17:22:08 +00: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

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

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

License

MIT