Skip to content

Commit

Permalink
chore: Use for loop instead of while (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnault authored Aug 19, 2022
1 parent e3a9300 commit dcc4e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function cx(): string {
i = 0,
arg: unknown;

while (i < arguments.length) {
for (; i < arguments.length; ) {
if ((arg = arguments[i++]) && typeof arg === "string") {
str && (str += " ");
str += arg;
Expand Down

0 comments on commit dcc4e12

Please sign in to comment.