Skip to content

isWeakMap

Determine whether the input value is a WeakMap.

Usage

ts
import { isWeakMap } from 'rattail'

isWeakMap(new WeakMap()) // return true

Arguments

ArgTypeDefaults
valueany

Return

Type
boolean