Irina Glushko 2389e7160b HW1 done 3 سال پیش
..
.github 2389e7160b HW1 done 3 سال پیش
test 2389e7160b HW1 done 3 سال پیش
.editorconfig 2389e7160b HW1 done 3 سال پیش
.eslintignore 2389e7160b HW1 done 3 سال پیش
.eslintrc 2389e7160b HW1 done 3 سال پیش
.nycrc 2389e7160b HW1 done 3 سال پیش
CHANGELOG.md 2389e7160b HW1 done 3 سال پیش
LICENSE 2389e7160b HW1 done 3 سال پیش
README.md 2389e7160b HW1 done 3 سال پیش
index.js 2389e7160b HW1 done 3 سال پیش
package.json 2389e7160b HW1 done 3 سال پیش

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