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

has-symbols Version Badge

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.0.3                                ...           latest (3 years ago)

3 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (9)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org