nn 35a927ef98 迁移校园资讯游览器客户端 8 anni fa
..
.npmignore 35a927ef98 迁移校园资讯游览器客户端 8 anni fa
.travis.yml 35a927ef98 迁移校园资讯游览器客户端 8 anni fa
LICENSE 35a927ef98 迁移校园资讯游览器客户端 8 anni fa
index.js 35a927ef98 迁移校园资讯游览器客户端 8 anni fa
package.json 35a927ef98 迁移校园资讯游览器客户端 8 anni fa
readme.md 35a927ef98 迁移校园资讯游览器客户端 8 anni fa

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