Skip to main content
isSymbolObject - node__util--types.d.ts - Node documentation
function isSymbolObject

Usage in Deno

```typescript import { isSymbolObject } from "node:node__util--types.d.ts"; ```
isSymbolObject(object: unknown): object is Symbol
Returns `true` if the value is a symbol object, created by calling `Object()` on a `Symbol` primitive. ```js const symbol = Symbol('foo'); util.types.isSymbolObject(symbol); // Returns false util.types.isSymbolObject(Object(symbol)); // Returns true ```

Parameters

object: unknown

Return Type

object is Symbol