El Mehdi Touimi Benjelloun 015b74845c First commit | 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