@zstings/utils
Version:
javascript、typescript 工具函数库 文档地址 [utils 文档](https://zstings.github.io/utils/)
19 lines (18 loc) • 334 B
TypeScript
/**
* 判断是否为Boolean
* @param value 任意值
* @return true | false
* @category 工具Util
* @example
* 验证通过
* ```ts
* isBoolean(true) => true
* isBoolean(false) => true
* ```
* @example
* 验证失败
* ```ts
* isBoolean(123) => false
* ```
*/
export default function isBoolean(value: any): boolean;