caoge c760052ff9 机车状态修改 | hace 8 meses | |
---|---|---|
.. | ||
.github | hace 8 meses | |
test | hace 8 meses | |
.eslintrc | hace 8 meses | |
.nycrc | hace 8 meses | |
CHANGELOG.md | hace 8 meses | |
LICENSE | hace 8 meses | |
README.md | hace 8 meses | |
index.js | hace 8 meses | |
package.json | hace 8 meses | |
shams.js | hace 8 meses |
Determine if the JS environment has Symbol support. Supports spec, or shams.
var hasSymbols = require('has-symbols');
hasSymbols() === true; // if the environment has native Symbol support. Not polyfillable, not forgeable.
var hasSymbolsKinda = require('has-symbols/shams');
hasSymbolsKinda() === true; // if the environment has a Symbol sham that mostly follows the spec.
Simply clone the repo, npm install
, and run npm test