Kevin 29b9a0c50c clean && clean html base | vor 4 Jahren | |
---|---|---|
.. | ||
.github | vor 4 Jahren | |
test | vor 4 Jahren | |
.eslintrc | vor 4 Jahren | |
.travis.yml | vor 4 Jahren | |
CHANGELOG.md | vor 4 Jahren | |
LICENSE | vor 4 Jahren | |
README.md | vor 4 Jahren | |
index.js | vor 4 Jahren | |
package.json | vor 4 Jahren | |
shams.js | vor 4 Jahren |
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