setup-python/node_modules/is-symbol
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00
..
test Initial pass 2019-06-26 21:12:00 -04:00
.editorconfig Initial pass 2019-06-26 21:12:00 -04:00
.eslintrc Initial pass 2019-06-26 21:12:00 -04:00
.jscs.json Initial pass 2019-06-26 21:12:00 -04:00
.nvmrc Initial pass 2019-06-26 21:12:00 -04:00
.travis.yml Initial pass 2019-06-26 21:12:00 -04:00
CHANGELOG.md Initial pass 2019-06-26 21:12:00 -04:00
index.js Initial pass 2019-06-26 21:12:00 -04:00
LICENSE Initial pass 2019-06-26 21:12:00 -04:00
Makefile Initial pass 2019-06-26 21:12:00 -04:00
package.json Initial pass 2019-06-26 21:12:00 -04:00
README.md Initial pass 2019-06-26 21:12:00 -04:00

#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