liup a01a5aa773 | hace 3 semanas | |
---|---|---|
.. | ||
.github | hace 3 semanas | |
test | hace 3 semanas | |
.eslintrc | hace 3 semanas | |
.nycrc | hace 3 semanas | |
CHANGELOG.md | hace 3 semanas | |
LICENSE | hace 3 semanas | |
README.md | hace 3 semanas | |
index.d.ts | hace 3 semanas | |
index.js | hace 3 semanas | |
package.json | hace 3 semanas | |
shams.d.ts | hace 3 semanas | |
shams.js | hace 3 semanas | |
tsconfig.json | hace 3 semanas |
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