function isSymbol Usage in Denoimport { isSymbol } from "node:util"; isSymbol(object: unknown): object is symbol DeprecatedSince v4.0.0 - Use typeof value === 'symbol' instead. Returns true if the given object is a Symbol. Otherwise, returns false. const util = require('node:util'); util.isSymbol(5); // Returns: false util.isSymbol('foo'); // Returns: false util.isSymbol(Symbol('foo')); // Returns: true Parameters object: unknown Return Type object is symbol