can-promise
Tiny module for checking if Promise is globally available
Last updated 7 years ago by vigreco .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install can-promise 
SYNC missed versions from official npm registry.

can-promise

Tiny module for checking if Promise is globally available.

Installation

npm i --save can-promise

Example

const canPromise = require('can-promise')
// or
import canPromise from 'can-promise'

// on Node < 0.11.13
console.log(canPromise()) // false

// on Node >= 0.11.13
console.log(canPromise()) // true

// on IE9
console.log(canPromise()) // false

// on Chrome, Firefox
console.log(canPromise()) // true

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

1 Versions

  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |