is-symbol
Advanced tools
Determine if a value is an ES6 Symbol or not.
Weekly downloads
Changelog
v1.0.4 - 2021-05-08
997d43c
node/install
instead of node/run
; use codecov
action fe0ccb7
3ab2748
f20fafe
nyc
on all tests 5c332fc
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, object-inspect
, tape
c5a58a8
bcd9258
33ae2d3
eslint
, @ljharb/eslint-config
, aud
, object-inspect
, tape
e53def0
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, object-inspect
ae36504
aae7f09
eslint
, @ljharb/eslint-config
, tape
d993fae
eslint
, @ljharb/eslint-config
, tape
51808a5
auto-changelog
, tape
c90040f
eslint
, tape
9fee159
prepublishOnly
script for npm 7+ b166afc
4a0fe3a
fbcbc9e
auto-changelog
; add aud
e66ab98
has-symbols
6ce7de5
1173c79
pull_request_target
event 94a6348
0692681
ed47833
Readme
Is this an ES6 Symbol value?
var isSymbol = require('is-symbol');
assert(!isSymbol(function () {}));
assert(!isSymbol(null));
assert(!isSymbol(function* () { yield 42; return Infinity; });
assert(isSymbol(Symbol.iterator));
assert(isSymbol(Symbol('foo')));
assert(isSymbol(Symbol.for('foo')));
assert(isSymbol(Object(Symbol('foo'))));
Simply clone the repo, npm install
, and run npm test
Determine if a value is an ES6 Symbol or not.
The npm package is-symbol receives a total of 21,809,552 weekly downloads. As such, is-symbol popularity was classified as popular.
We found that is-symbol demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.