Skip to content

isSymbol

Check if the input parameter is a symbol.

Added in v0.0.1

Usage

ts
import { isSymbol } from 'parsnip-kit'

isSymbol(Symbol('test')) // true
isSymbol('test') // false

API

Arguments

ArgTypeOptionalDefaultDescription
arganyfalseundefinedParameters for check

Returns

Type
boolean