caoge c760052ff9 机车状态修改 | il y a 8 mois | |
---|---|---|
.. | ||
.github | il y a 8 mois | |
test | il y a 8 mois | |
.eslintrc | il y a 8 mois | |
.nycrc | il y a 8 mois | |
CHANGELOG.md | il y a 8 mois | |
LICENSE | il y a 8 mois | |
README.md | il y a 8 mois | |
index.js | il y a 8 mois | |
package.json | il y a 8 mois | |
shams.js | il y a 8 mois |
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