Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Siti Rahayu 79f738203a latest 5 年前
..
test latest 5 年前
.editorconfig latest 5 年前
.eslintrc latest 5 年前
.jscs.json latest 5 年前
.nvmrc latest 5 年前
.travis.yml latest 5 年前
CHANGELOG.md latest 5 年前
LICENSE latest 5 年前
Makefile latest 5 年前
README.md latest 5 年前
index.js latest 5 年前
package.json latest 5 年前

README.md

is-symbol Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

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