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