Skip to content

isMap

Determine whether the input value is a Map.

Usage

ts
import { isMap } from 'rattail'

isMap(new Map()) // return true
isMap({}) // return false

Arguments

ArgTypeDefaults
valueany

Return

Type
boolean