Skip to content

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 _ from 'radashi'
_.isSymbol('hello') // => false
_.isSymbol(Symbol('hello')) // => true