Package detail

is-well-known-symbol

inspect-js17MIT1.1.2

Is this value a well-known Symbol?

javascript, ecmascript, symbol, well-known

readme

is-well-known-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 isWellKnownSymbol = require('is-well-known-symbol');

var assert = require('assert');

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

Tests

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.1.2 - 2024-12-29

Commits

  • [Refactor] use own-keys directly 94653e4
  • [Dev Deps] update @arethetypeswrong/cli, @ljharb/tsconfig 10ea846

v1.1.1 - 2024-12-19

Commits

  • [Refactor] use 1 iteration instead of 2; drop flatmap dep c1f8dd3
  • [Deps] update array.prototype.flatmap, call-bound, is-symbol 388ff14
  • [Dev Deps] update @types/tape, intl-fallback-symbol 6f1e193
  • [Refactor] throw if hasSymbols, but no valueOf exists cebb825
  • [meta] add sideEffects flag a0d5ebc

v1.1.0 - 2024-12-18

Commits

  • [New] add types c5da9e2
  • [Refactor] allow more code to be DCEd bccfc93
  • [actions] split out node 10-20, and 20+ 43d091b
  • [Dev Deps] update @ljharb/eslint-config, auto-changelog, es-value-fixtures, intl-fallback-symbol, npmignore, object-inspect, tape cbc222b
  • [actions] update rebase action to use reusable workflow 9301f1f
  • [Deps] update array.prototype.flatmap, call-bind, has-symbols, is-symbol, reflect.ownkeys 00e32b0
  • [Refactor] use call-bound directly 359991a
  • [Dev Deps] update aud, tape b96f3e5
  • [Tests] replace aud with npm audit 0cbce69
  • [Dev Deps] add missing peer dep d831357

v1.0.1 - 2022-07-20

Commits

  • [meta] use npmignore to autogenerate an npmignore file 3a4d609
  • [Fix] IntlFallbackSymbol is not a well-known symbol, reconfirmed per 2022.07.20 TC39 c21d3b1
  • [eslint] fix linting errors afdfdcb
  • [Dev Deps] update es-value-fixtures, object-inspect 25a96d7

v1.0.0 - 2022-04-25

Commits