zz 65c8a28f48 项目初始化 2 hari lalu
..
.github 65c8a28f48 项目初始化 2 hari lalu
test 65c8a28f48 项目初始化 2 hari lalu
.editorconfig 65c8a28f48 项目初始化 2 hari lalu
.eslintignore 65c8a28f48 项目初始化 2 hari lalu
.eslintrc 65c8a28f48 项目初始化 2 hari lalu
.nycrc 65c8a28f48 项目初始化 2 hari lalu
CHANGELOG.md 65c8a28f48 项目初始化 2 hari lalu
LICENSE 65c8a28f48 项目初始化 2 hari lalu
README.md 65c8a28f48 项目初始化 2 hari lalu
index.js 65c8a28f48 项目初始化 2 hari lalu
package.json 65c8a28f48 项目初始化 2 hari lalu

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