isSymbol
Determine if a value is a Symbol
63 bytes
Usage
Pass in a value and get a boolean telling you if the value is a Symbol.
import * as import _
_ from 'radashi'
import _
_.function isSymbol(value: unknown): value is symbolexport isSymbol
Checks if the given value is a symbol.
isSymbol('hello') // => falseimport _
_.function isSymbol(value: unknown): value is symbolexport isSymbol
Checks if the given value is a symbol.
isSymbol(var Symbol: SymbolConstructor(description?: string | number) => symbol
Returns a new unique Symbol value.
Symbol('hello')) // => true