WUT_Computer_Science/EGUI/lab3/front/node_modules/is-symbol
2022-06-15 03:02:51 +02:00
..
.github chore 2022-06-15 03:02:51 +02:00
test chore 2022-06-15 03:02:51 +02:00
.editorconfig chore 2022-06-15 03:02:51 +02:00
.eslintignore chore 2022-06-15 03:02:51 +02:00
.eslintrc chore 2022-06-15 03:02:51 +02:00
.nycrc chore 2022-06-15 03:02:51 +02:00
CHANGELOG.md chore 2022-06-15 03:02:51 +02:00
index.js chore 2022-06-15 03:02:51 +02:00
LICENSE chore 2022-06-15 03:02:51 +02:00
package.json chore 2022-06-15 03:02:51 +02:00
README.md chore 2022-06-15 03:02:51 +02: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