Package Exports
- is-promise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-promise
Test whether an object looks like a promises-a+ promise
Installation
$ npm install is-promiseYou 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})//=>falseLicense
MIT
