Skip to content

Commit f3e6532

Browse files
author
Simon he
committed
chore: add isBool
1 parent c4df807 commit f3e6532

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ export { isNaN } from './isNaN'
2222
export { isSymbol } from './isSymbol'
2323
export { isNull } from './isNull'
2424
export { isReg } from './isReg'
25+
export { isBool } from './isBool'
2526
export { VFetch } from './VFetch'
2627
export { interceptError } from './interceptError'

src/isBool.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function isBool(value: any): boolean {
2+
return typeof value === 'boolean'
3+
}

0 commit comments

Comments
 (0)