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
Client:
$ component install then/is-promiseServer:
$ npm install is-promiseAPI
var isPromise = require('is-promise');
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>falseLicense
MIT