is-symbol (1.1.1)

Published 2026-02-24 13:58:41 +00:00 by atheaadmin

Installation

registry=
npm install is-symbol@1.1.1
"is-symbol": "1.1.1"

About this package

is-symbol Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Dependencies

Dependencies

ID Version
call-bound ^1.0.2
has-symbols ^1.1.0
safe-regex-test ^1.1.0

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.1
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.2.2
@types/for-each ^0.3.3
@types/object-inspect ^1.13.0
@types/tape ^5.6.5
auto-changelog ^2.5.0
encoding ^0.1.13
es-value-fixtures ^1.5.0
eslint =8.8.0
for-each ^0.3.3
has-tostringtag ^1.0.2
in-publish ^2.0.1
npmignore ^0.3.1
nyc ^10.3.2
object-inspect ^1.13.3
safe-publish-latest ^2.0.0
tape ^5.9.0
typescript next

Keywords

symbol es6 is Symbol
Details
npm
2026-02-24 13:58:41 +00:00
0
Jordan Harband
MIT
latest
9.3 KiB
Assets (1)
Versions (1) View all
1.1.1 2026-02-24