Skip to content

toTypeString

Return the type string of the input value.

Usage

ts
import { toTypeString } from 'rattail'

toTypeString({}) // return '[object Object]'
toTypeString([]) // return '[object Array]'

Arguments

ArgTypeDefaults
valueany

Return

Type
string