![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 5 months ago | - | |
![]() | shams.js | 5 months ago | 1.7K | |
![]() | package.json | 5 months ago | 2.6K | |
![]() | index.js | 5 months ago | 420 | |
![]() | README.md | 5 months ago | 2.0K | |
![]() | LICENSE | 5 months ago | 1.0K | |
![]() | CHANGELOG.md | 5 months ago | 7.5K |
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