zz 65c8a28f48 项目初始化 1 nedēļu atpakaļ
..
.github 65c8a28f48 项目初始化 1 nedēļu atpakaļ
test 65c8a28f48 项目初始化 1 nedēļu atpakaļ
.editorconfig 65c8a28f48 项目初始化 1 nedēļu atpakaļ
.eslintignore 65c8a28f48 项目初始化 1 nedēļu atpakaļ
.eslintrc 65c8a28f48 项目初始化 1 nedēļu atpakaļ
.nycrc 65c8a28f48 项目初始化 1 nedēļu atpakaļ
CHANGELOG.md 65c8a28f48 项目初始化 1 nedēļu atpakaļ
LICENSE 65c8a28f48 项目初始化 1 nedēļu atpakaļ
README.md 65c8a28f48 项目初始化 1 nedēļu atpakaļ
index.js 65c8a28f48 项目初始化 1 nedēļu atpakaļ
package.json 65c8a28f48 项目初始化 1 nedēļu atpakaļ

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