Bakhtina Sofya b84cb877be 1st comm | vor 3 Wochen | |
---|---|---|
.. | ||
.github | vor 3 Wochen | |
test | vor 3 Wochen | |
.eslintrc | vor 3 Wochen | |
.nycrc | vor 3 Wochen | |
CHANGELOG.md | vor 3 Wochen | |
LICENSE | vor 3 Wochen | |
README.md | vor 3 Wochen | |
index.js | vor 3 Wochen | |
package.json | vor 3 Wochen | |
shams.js | vor 3 Wochen |
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