vlad 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos
..
.npmignore 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos
.travis.yml 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos
LICENSE 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos
index.js 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos
package.json 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos
readme.md 6f123ff03e 18.07 %!s(int64=6) %!d(string=hai) anos

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