Dirk Alders 97486731b5 Dashboard 2 - EG-West | 4 个月前 | |
---|---|---|
.. | ||
.github | 4 个月前 | |
test | 4 个月前 | |
.eslintrc | 4 个月前 | |
.nycrc | 4 个月前 | |
CHANGELOG.md | 4 个月前 | |
LICENSE | 4 个月前 | |
README.md | 4 个月前 | |
index.js | 4 个月前 | |
package.json | 4 个月前 | |
shams.js | 4 个月前 |
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