Skip to content

Commit

Permalink
fixed pad function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gräfenstein committed Apr 1, 2018
1 parent a420a05 commit 3647b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sourceArray.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function padNumber(num: number, length: number, pad: string): string {
let result = String(num)
while (result.length < length) {
result = String(pad) + num
result = String(pad) + result
}
return result
}
Expand Down

0 comments on commit 3647b8b

Please sign in to comment.