小宝贝 2332bb7261 node 1 жил өмнө
..
.github 2332bb7261 node 1 жил өмнө
test 2332bb7261 node 1 жил өмнө
.editorconfig 2332bb7261 node 1 жил өмнө
.eslintignore 2332bb7261 node 1 жил өмнө
.eslintrc 2332bb7261 node 1 жил өмнө
.nycrc 2332bb7261 node 1 жил өмнө
CHANGELOG.md 2332bb7261 node 1 жил өмнө
LICENSE 2332bb7261 node 1 жил өмнө
README.md 2332bb7261 node 1 жил өмнө
index.js 2332bb7261 node 1 жил өмнө
package.json 2332bb7261 node 1 жил өмнө

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