Skip to content

Commit 30482b2

Browse files
committed
style: format
1 parent cc65ee5 commit 30482b2

File tree

2 files changed

+5827
-2
lines changed

2 files changed

+5827
-2
lines changed

src/utils/kindOf.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export function miniKindOf(val: any): string {
33
if (val === void 0) return 'undefined'
44
if (val === null) return 'null'
55

6-
let type = typeof val
6+
const type = typeof val
77
switch (type) {
88
case 'boolean':
99
case 'string':
@@ -30,7 +30,11 @@ export function miniKindOf(val: any): string {
3030
}
3131

3232
// other
33-
return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, '')
33+
return Object.prototype.toString
34+
.call(val)
35+
.slice(8, -1)
36+
.toLowerCase()
37+
.replace(/\s/g, '')
3438
}
3539

3640
function ctorName(val: any): string | null {

0 commit comments

Comments
 (0)