Velar/Backend/node_modules/has-symbols
2025-05-23 18:21:16 +05:30
..
.github Safe 2025-05-23 18:21:16 +05:30
test Safe 2025-05-23 18:21:16 +05:30
.eslintrc Safe 2025-05-23 18:21:16 +05:30
.nycrc Safe 2025-05-23 18:21:16 +05:30
CHANGELOG.md Safe 2025-05-23 18:21:16 +05:30
index.d.ts Safe 2025-05-23 18:21:16 +05:30
index.js Safe 2025-05-23 18:21:16 +05:30
LICENSE Safe 2025-05-23 18:21:16 +05:30
package.json Safe 2025-05-23 18:21:16 +05:30
README.md Safe 2025-05-23 18:21:16 +05:30
shams.d.ts Safe 2025-05-23 18:21:16 +05:30
shams.js Safe 2025-05-23 18:21:16 +05:30
tsconfig.json Safe 2025-05-23 18:21:16 +05:30

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