@f/is-defer

Check if value looks like a defer.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/is-defer
001.0.06 years ago6 years agoMinified + gzip package size for @f/is-defer in KB

Readme

is-defer

Build status Git tag NPM version Code style

Check if value looks like a defer.

Installation

$ npm install @f/is-defer

Usage

var isDefer = require('@f/is-defer')

isDefer(Promise.defer()) // => true

API

isDefer(val, strict)

  • val - check if val is defer
  • strict - requires resolve and reject if true

Returns: boolean

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.