Skip to content

isBoolean ​

判断输入值是否是 布尔值。

使用 ​

ts
import { isBoolean } from 'rattail'

isBoolean(true) // return true
isBoolean('rattail') // return false

参数 ​

参数类型默认值
valueany

返回值 ​

类型
boolean