Skip to content

isNull ​

判断入参是否为null。

Added in v0.0.1

Usage ​

ts
import { isNull } from 'parsnip-kit'

isNull(null) // true
isNull({}) // false
isNull(undefined) // false

API ​

Arguments ​

ArgTypeOptionalDefaultDescription
arganyfalseundefined待判断的入参

Returns ​

Type
boolean