npm.devtool.tech
👏 You can access is-promise package with using isPromise variable in browser devtools!
Test whether an object looks like a promises-a+ promise

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

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

import isPromise from 'is-promise';

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

License

MIT

🔎Explore Package🔎CDN Script

Score

Popularity56/100
Quality95/100
Maintenance100/100