htc 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
..
.github 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
test 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
.editorconfig 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
.eslintrc 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
.nycrc 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
CHANGELOG.md 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
index.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前
tsconfig.json 7ca38fdcbb 善行少年PC端首次提交(基础版) 10 月之前

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