Skip to content
Is this an ES6 Symbol value?
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test [Tests] fix test messages Sep 20, 2018
.editorconfig
.eslintrc
.gitignore
.npmrc Only apps should have lockfiles. Jun 27, 2017
.nvmrc
.travis.yml
CHANGELOG.md
LICENSE
Makefile `make release` Jan 24, 2015
README.md
index.js
package.json [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape`… Jan 20, 2019

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

You can’t perform that action at this time.