|
преди 5 години | |
---|---|---|
.. | ||
.editorconfig | преди 5 години | |
.npmignore | преди 5 години | |
AUTHORS | преди 5 години | |
History.md | преди 5 години | |
LICENSE | преди 5 години | |
README.md | преди 5 години | |
index.js | преди 5 години | |
package.json | преди 5 години |
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