is-registered-symbol
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

is-registered-symbol Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a Symbol stored in the global cross-realm Symbol registry?

Example

var isRegisteredSymbol = require('is-registered-symbol');

var assert = require('assert');

assert(!isRegisteredSymbol(null));
assert(!isRegisteredSymbol(undefined));
assert(!isRegisteredSymbol('foo'));
assert(!isRegisteredSymbol(Symbol.iterator));
assert(!isRegisteredSymbol(Symbol()));
assert(isRegisteredSymbol(Symbol.for('yogurt')));

Tests

Simply clone the repo, npm install, and run npm test

Package Sidebar

Install

npm i is-registered-symbol

Weekly Downloads

29

Version

1.1.1

License

MIT

Unpacked Size

12.3 kB

Total Files

11

Last publish

Collaborators

  • ljharb