|
il y a 5 ans | |
---|---|---|
.. | ||
.editorconfig | il y a 5 ans | |
.npmignore | il y a 5 ans | |
AUTHORS | il y a 5 ans | |
History.md | il y a 5 ans | |
LICENSE | il y a 5 ans | |
README.md | il y a 5 ans | |
index.js | il y a 5 ans | |
package.json | il y a 5 ans |
Detect es6 and es7 features enable or not.
$ npm install enable --save
var enable = require('enable');
if (enable.<feature>) {
console.log(<feature> is supported);
}
/* Example:
if (enable.generator) {
console.log('supports generator: `function* a() {}`');
}
*/
Object related:
String realted:
Number realted:
Math realted:
Others:
$ npm install
$ npm test
$ npm test-cov