![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 4 days ago | - | |
![]() | CHANGELOG.md | 39 years ago | 9.2K | |
![]() | LICENSE | 39 years ago | 1.0K | |
![]() | README.md | 39 years ago | 2.0K | |
![]() | index.d.ts | 39 years ago | 73 | |
![]() | index.js | 39 years ago | 447 | |
![]() | package.json | 39 years ago | 2.9K | |
![]() | shams.d.ts | 39 years ago | 69 | |
![]() | shams.js | 39 years ago | 1.9K | |
![]() | tsconfig.json | 39 years ago | 143 |
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