Files
Tim van der Lippe 2c89197d0d Update ESLint-related packages
R=jacktfranklin@chromium.org

No-Presubmit: True
Bug: none
Change-Id: I52dc24b12e350787085c5e3d131cface7ea87142
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3060705
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2021-07-30 11:02:26 +00:00
..
2021-07-30 11:02:26 +00:00
2020-11-13 12:28:15 +00:00
2019-10-21 08:08:56 +02:00
2021-07-30 11:02:26 +00:00
2020-11-13 12:28:15 +00:00
2021-07-30 11:02:26 +00:00
2021-07-30 11:02:26 +00:00
2019-10-21 08:08:56 +02:00
2019-10-21 08:08:56 +02:00
2021-07-30 11:02:26 +00:00
2021-07-30 11:02:26 +00:00

is-symbol Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this an ES6 Symbol value?

Example

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'))));

Tests

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