Opal-Estate-Pro/node_modules/is-symbol
2019-09-13 09:44:33 +07:00
..
test uapte 2019-09-13 09:44:33 +07:00
.editorconfig uapte 2019-09-13 09:44:33 +07:00
.eslintrc uapte 2019-09-13 09:44:33 +07:00
.jscs.json uapte 2019-09-13 09:44:33 +07:00
.nvmrc uapte 2019-09-13 09:44:33 +07:00
.travis.yml uapte 2019-09-13 09:44:33 +07:00
CHANGELOG.md uapte 2019-09-13 09:44:33 +07:00
index.js uapte 2019-09-13 09:44:33 +07:00
LICENSE uapte 2019-09-13 09:44:33 +07:00
Makefile uapte 2019-09-13 09:44:33 +07:00
package.json uapte 2019-09-13 09:44:33 +07:00
README.md uapte 2019-09-13 09:44:33 +07: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