Returns true if object is a Symbol (official Underscore docs). Symbol(), described symbols, well-known symbols, and boxed symbols pass; strings and numbers do not. Stable helper (Underscore 1.9+) — not deprecated.
Pass the required arguments shown below. Underscore object helpers usually return a new value — check whether the source object is mutated.
Syntax
Call _.isSymbol. Start with this line.
Underscore
_.isSymbol(object)
Call
What it does
_.isSymbol(object)
Primary signature.
_.isSymbol(...)
Call with the arguments your case needs.
Load Underscore with import _ from "underscore" (or the UMD CDN build) so these helpers are available as _.
Guard first. Reject non-Symbol keys so string keys are not set this way.
Symbol path.secret passes → value 1 is stored.
String rejected."secret" fails the check → returns false.
Hidden from keys.Object.keys does not list Symbol keys (length stays 0).
Compatibility
Browser & Runtime Support
_.isSymbol ships with Underscore.js 1.9+. It needs an ES2015+ runtime that provides Symbol. Works in modern browsers (CDN or bundle) and current Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.9+
_.isSymbol()
Available in [email protected]+ (UMD / ESM). Requires native Symbol (ES2015). Fine on evergreen browsers and current Node LTS when Underscore is loaded.
98%Modern ES2015+ runtimes
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.isSymbolUnderscore 1.9+ · ES2015+
Bottom line: Safe for modern apps once Underscore 1.9+ is loaded. Not a native browser API by itself — you need both Underscore and a Symbol-capable engine. Prefer a pinned CDN version (e.g. [email protected]).
Frequently Asked Questions
_.isSymbol(object) returns true only when the value is a Symbol — Symbol(), Symbol("id"), Object(Symbol()), Symbol.for("id"), or a well-known symbol such as Symbol.iterator. Numbers, strings, functions, and plain objects return false.
_.isSymbol(Symbol()) returns true. The docs pick a real Symbol on purpose — that is the type the helper looks for.
Yes. Symbol("description"), Symbol.for("key"), and Object(Symbol()) all return true. Boxing wraps the symbol, but the internal tag is still [object Symbol].
typeof Symbol() is "symbol", which is accurate for primitives. typeof Object(Symbol()) is "object", so typeof misses boxed symbols. Underscore’s tag check accepts both.
Use it as a guard before treating a value as a unique property key, or when filtering Object.getOwnPropertySymbols results and mixed value lists.
No. It is a stable Underscore helper (added in 1.9.0). Load Underscore 1.x in an ES2015+ environment and call _.isSymbol(value).