File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.3" ,
4
4
"repository" : " lukeed/clsx" ,
5
5
"description" : " A tiny (199B) utility for constructing className strings conditionally." ,
6
- "unpkg" : " dist/clsx.min.js" ,
7
6
"module" : " dist/clsx.m.js" ,
7
+ "unpkg" : " dist/clsx.min.js" ,
8
8
"main" : " dist/clsx.js" ,
9
+ "types" : " clsx.d.ts" ,
9
10
"license" : " MIT" ,
10
11
"author" : {
11
12
"name" : " Luke Edwards" ,
20
21
"pretest" : " npm run build" ,
21
22
"test" : " tape test/*.js | tap-spec"
22
23
},
23
- "types" : " clsx.d.ts" ,
24
24
"files" : [
25
25
" *.d.ts" ,
26
26
" dist"
Original file line number Diff line number Diff line change @@ -2,21 +2,21 @@ function toVal(mix) {
2
2
var k , y , str = '' ;
3
3
if ( mix ) {
4
4
if ( typeof mix === 'object' ) {
5
- if ( ! ! mix . push ) {
6
- for ( k = 0 ; k < mix . length ; k ++ ) {
7
- if ( mix [ k ] && ( y = toVal ( mix [ k ] ) ) ) {
8
- str && ( str += ' ' ) ;
9
- str += y ;
5
+ if ( ! ! mix . push ) {
6
+ for ( k = 0 ; k < mix . length ; k ++ ) {
7
+ if ( mix [ k ] && ( y = toVal ( mix [ k ] ) ) ) {
8
+ str && ( str += ' ' ) ;
9
+ str += y ;
10
+ }
10
11
}
11
- }
12
12
} else {
13
- for ( k in mix ) {
14
- if ( mix [ k ] && ( y = toVal ( k ) ) ) {
15
- str && ( str += ' ' ) ;
16
- str += y ;
13
+ for ( k in mix ) {
14
+ if ( mix [ k ] && ( y = toVal ( k ) ) ) {
15
+ str && ( str += ' ' ) ;
16
+ str += y ;
17
+ }
17
18
}
18
19
}
19
- }
20
20
} else if ( typeof mix !== 'boolean' && ! mix . call ) {
21
21
str && ( str += ' ' ) ;
22
22
str += mix ;
You can’t perform that action at this time.
0 commit comments