codeql-action/node_modules/well-known-symbols
Robert Brignull 0347b72305 replace jest with ava 2020-05-13 11:13:27 +01:00
..
LICENSE replace jest with ava 2020-05-13 11:13:27 +01:00
README.md replace jest with ava 2020-05-13 11:13:27 +01:00
index.js replace jest with ava 2020-05-13 11:13:27 +01:00
package.json replace jest with ava 2020-05-13 11:13:27 +01:00

README.md

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