codeql-action/node_modules/is-symbol
github-actions[bot] 0da815296a Update checked-in dependencies 2022-02-24 17:03:29 +00:00
..
.github Update checked-in dependencies 2021-07-27 16:54:26 +00:00
test Regenerating node_modules 2020-09-14 10:42:37 +01:00
.editorconfig Regenerating node_modules 2020-09-14 10:42:37 +01:00
.eslintignore Update checked-in dependencies 2021-07-27 16:54:26 +00:00
.eslintrc Regenerating node_modules 2020-09-14 10:42:37 +01:00
.nycrc Update checked-in dependencies 2021-07-27 16:54:26 +00:00
CHANGELOG.md Update checked-in dependencies 2021-07-27 16:54:26 +00:00
LICENSE Regenerating node_modules 2020-09-14 10:42:37 +01:00
README.md Update checked-in dependencies 2021-07-27 16:54:26 +00:00
index.js Regenerating node_modules 2020-09-14 10:42:37 +01:00
package.json Update checked-in dependencies 2022-02-24 17:03:29 +00:00

README.md

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