刘琳琳 97c35fdf0d 航汇HHArome小程序容器演示 | hai 2 meses | |
---|---|---|
.. | ||
test | hai 2 meses | |
.eslintrc | hai 2 meses | |
.nycrc | hai 2 meses | |
CHANGELOG.md | hai 2 meses | |
LICENSE | hai 2 meses | |
README.md | hai 2 meses | |
index.js | hai 2 meses | |
package.json | hai 2 meses | |
shams.js | hai 2 meses |
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