setup-node/node_modules/is-symbol
Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00
..
test Use husky 2019-06-05 11:34:47 -04:00
.editorconfig Use husky 2019-06-05 11:34:47 -04:00
.eslintrc Use husky 2019-06-05 11:34:47 -04:00
.jscs.json Use husky 2019-06-05 11:34:47 -04:00
.nvmrc Use husky 2019-06-05 11:34:47 -04:00
.travis.yml Use husky 2019-06-05 11:34:47 -04:00
CHANGELOG.md Use husky 2019-06-05 11:34:47 -04:00
index.js Use husky 2019-06-05 11:34:47 -04:00
LICENSE Use husky 2019-06-05 11:34:47 -04:00
Makefile Use husky 2019-06-05 11:34:47 -04:00
package.json Use husky 2019-06-05 11:34:47 -04:00
README.md Use husky 2019-06-05 11:34:47 -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