吕君喜 406d880ac6 first | vor 3 Jahren | |
---|---|---|
.. | ||
test | vor 3 Jahren | |
.eslintrc | vor 3 Jahren | |
.npmignore | vor 3 Jahren | |
.travis.yml | vor 3 Jahren | |
CHANGELOG.md | vor 3 Jahren | |
LICENSE | vor 3 Jahren | |
README.md | vor 3 Jahren | |
index.js | vor 3 Jahren | |
package.json | vor 3 Jahren | |
shams.js | vor 3 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