util.isSymbol(object)
Stability: 0 - Deprecated
Returns true
if the given "object" is a Symbol
. Otherwise, returns false
.
const util = require('util'); util.isSymbol(5) // false util.isSymbol('foo') // false util.isSymbol(Symbol('foo')) // true
Please login to continue.