Files
bug-em/node_modules/lowdb/node_modules/is-promise
thewesker f8c72a5a29 DMs
2016-06-18 13:24:12 -04:00
..
DMs
2016-06-18 13:24:12 -04:00
DMs
2016-06-18 13:24:12 -04:00
DMs
2016-06-18 13:24:12 -04:00
DMs
2016-06-18 13:24:12 -04:00
DMs
2016-06-18 13:24:12 -04:00
DMs
2016-06-18 13:24:12 -04: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