@f/is-defer

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @f/is-defer

Weekly Downloads

20

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f