has-symbols
Determine if the JS environment has Symbol support. Supports spec, or shams.
Last updated 23 days ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install has-symbols 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (23 days ago)

5 Versions

  • 1.1.0                                ...           23 days ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           8 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE