215 MB
4,079 files
Updated 2 days ago
Name
Size
.github
test
.eslintrc164 Bytes
xet
.nycrc139 Bytes
xet
CHANGELOG.md9.43 kB
xet
LICENSE1.07 kB
xet
README.md2.04 kB
xet
index.d.ts73 Bytes
xet
index.js447 Bytes
xet
package.json2.97 kB
xet
shams.d.ts69 Bytes
xet
shams.js1.92 kB
xet
tsconfig.json143 Bytes
xet
README.md

has-symbols Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Determine if the JS environment has Symbol support. Supports spec, or shams.

Example

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.

Supported Symbol shams

Tests

Simply clone the repo, npm install, and run npm test

Total size
215 MB
Files
4,079
Last updated
Aug 7
Pre-warmed CDN
US EU US EU

Contributors