Luis f4296bcada project initialized | 5 лет назад | |
---|---|---|
.. | ||
test | 5 лет назад | |
.eslintrc | 5 лет назад | |
.npmignore | 5 лет назад | |
.travis.yml | 5 лет назад | |
CHANGELOG.md | 5 лет назад | |
LICENSE | 5 лет назад | |
README.md | 5 лет назад | |
index.js | 5 лет назад | |
package.json | 5 лет назад | |
shams.js | 5 лет назад |
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