tree: 481b916436871e24c81f5bdc913ec2b069dfbc8f [path history] [tgz]
  1. test/
  2. .editorconfig
  3. .eslintrc
  4. .jscs.json
  5. .nvmrc
  6. .travis.yml
  7. CHANGELOG.md
  8. index.js
  9. LICENSE
  10. Makefile
  11. package.json
  12. README.md
third_party/devtools/node_modules/is-symbol/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