Package Exports
- feature-detect-es6
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (feature-detect-es6) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
feature-detect-es6
Detect which ES6 features are available.
Example
var detect = require('feature-detect-es6')
if (detect.class() && detect.arrowFunction()){
// safe to run ES6 code natively..
} else {
// run your transpiled ES5..
}- feature-detect-es6
- .class() ⇒
boolean - .arrowFunction() ⇒
boolean - .let() ⇒
boolean - .const() ⇒
boolean - .newArrayFeatures() ⇒
boolean - .collections() ⇒
boolean - .generators() ⇒
boolean - .promises() ⇒
boolean - .templateStrings() ⇒
boolean - .symbols() ⇒
boolean
- .class() ⇒
detect.class() ⇒ boolean
Returns true if the class statement is available.
Kind: static method of feature-detect-es6
detect.arrowFunction() ⇒ boolean
Returns true if the arrow functions available.
Kind: static method of feature-detect-es6
detect.let() ⇒ boolean
Returns true if the let statement is available.
Kind: static method of feature-detect-es6
detect.const() ⇒ boolean
Returns true if the const statement is available.
Kind: static method of feature-detect-es6
detect.newArrayFeatures() ⇒ boolean
Returns true if the new Array features are available (exluding Array.prototype.values which has zero support anywhere).
Kind: static method of feature-detect-es6
detect.collections() ⇒ boolean
Returns true if Map, WeakMap, Set and WeakSet are available.
Kind: static method of feature-detect-es6
detect.generators() ⇒ boolean
Returns true if generators are available.
Kind: static method of feature-detect-es6
detect.promises() ⇒ boolean
Returns true if Promise is available.
Kind: static method of feature-detect-es6
detect.templateStrings() ⇒ boolean
Returns true if template strings are available.
Kind: static method of feature-detect-es6
detect.symbols() ⇒ boolean
Returns true if Symbol is available.
Kind: static method of feature-detect-es6
© 2015 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.