npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

well-known-symbols

2.0.0 • Public • Published

well-known-symbols

Check whether a symbol is well-known.

Requires Node.js 6 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

install

npm i well-known-symbols

Downloadsweekly downloads

143,197

version

2.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability