has-symbols (1.1.0)

Published 2026-02-24 13:57:35 +00:00 by atheaadmin

Installation

registry=
npm install has-symbols@1.1.0
"has-symbols": "1.1.0"

About this package

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

Dependencies

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.0
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.2.0
@types/core-js ^2.5.8
@types/tape ^5.6.5
auto-changelog ^2.5.0
core-js ^2.6.12
encoding ^0.1.13
eslint =8.8.0
get-own-property-symbols ^0.9.5
in-publish ^2.0.1
npmignore ^0.3.1
nyc ^10.3.2
safe-publish-latest ^2.0.0
tape ^5.9.0
typescript next

Keywords

Symbol symbols typeof sham polyfill native core-js ES6
Details
npm
2026-02-24 13:57:35 +00:00
0
Jordan Harband
MIT
latest
7.9 KiB
Assets (1)
Versions (1) View all
1.1.0 2026-02-24