Emmanuel b7eccee437 Navbar | 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