Skip to content

@miyue-mma/shared / isBoolean

函数: isBoolean()

ts
function isBoolean(val): val is boolean

判断是否为 boolean

参数

val

unknown

待判断的值

返回

val is boolean

Released under the MIT License.