lepu-test-platform-web/node_modules/is-symbol
zhangbo db3ebd0df0 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
..
.github 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
test 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
.editorconfig 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
.eslintrc 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
.nvmrc 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
.travis.yml 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
CHANGELOG.md 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
LICENSE 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
Makefile 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
README.md 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
index.js 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00
package.json 把之前百度云的代码移植过来 2024-01-03 15:23:47 +08:00

README.md

#is-symbol Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

[![browser support][9]][10]

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