Skip to content

Commit e440cf9

Browse files
committed
Cut a few bytes
1 parent 4aa2c4f commit e440cf9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
var isArray = Array.isArray
22

33
export default function cc(names) {
4-
var i,
5-
len,
6-
tmp,
7-
out = "",
8-
type = typeof names
4+
var i
5+
var len
6+
var tmp = typeof names
7+
var out = ""
98

10-
if (type === "string" || type === "number") return names || ""
9+
if (tmp === "string" || tmp === "number") return names || ""
1110

1211
if (isArray(names) && names.length > 0) {
1312
for (i = 0, len = names.length; i < len; i++) {

0 commit comments

Comments
 (0)