Skip to content

dracupid/ispromise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promises/A+ logo

ispromise

Test whether an object/function is a promises/A+ object/function or constructor. More powerful then is-promise.

NPM version Build Status

Installation

npm i ispromise -S

Usage

var isPromise = require('ispromise');

isPromise(Promise) // false
isPromise(Promise.resolve()) // true
isPromise.isConstructor(Promise) // true

License

MIT@Jingchen Zhao

About

Whether an object is a promises/A+ object or constructor

Topics

Resources

License

Stars

Watchers

Forks

Packages