well-known-symbols
Check whether a symbol is well-known
Last updated 6 years ago by novemberborn .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install well-known-symbols 
SYNC missed versions from official npm registry.

well-known-symbols

Check whether a symbol is well-known.

Requires Node.js 10 or above. Note that not all Node.js versions support the same well-known symbols.

Installation

$ npm install --save well-known-symbols

Usage

const wellKnownSymbols = require('well-known-symbols')

wellKnownSymbols.isWellKnown(Symbol.iterator) // true
wellKnownSymbols.isWellKnown(Symbol()) // false

wellKnownSymbols.getLabel(Symbol.iterator) // 'Symbol.iterator'
wellKnownSymbols.getLabel(Symbol()) // undefined

Current Tags

  • 3.0.0                                ...           latest (6 years ago)

3 Versions

  • 3.0.0                                ...           6 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |