armansansd 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
..
.npmignore 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
.travis.yml 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
LICENSE 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
index.js 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
package.json 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
readme.md 3424b1927b first commit %!s(int64=2) %!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