lhl 6ff0e96ad3 8-4-1 | 1 år sedan | |
---|---|---|
.. | ||
.github | 1 år sedan | |
test | 1 år sedan | |
.eslintrc | 1 år sedan | |
.nycrc | 1 år sedan | |
CHANGELOG.md | 1 år sedan | |
LICENSE | 1 år sedan | |
README.md | 1 år sedan | |
index.js | 1 år sedan | |
package.json | 1 år sedan | |
shams.js | 1 år sedan |
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