update shimport, minor tidy up

This commit is contained in:
Rich Harris
2018-08-29 20:20:02 -04:00
parent f05a8e52a0
commit 4259fc8e58
5 changed files with 7 additions and 13 deletions

View File

@@ -3,11 +3,6 @@ export function left_pad(str: string, len: number) {
return str;
}
export function right_pad(str: string, len: number) {
while (str.length < len) str += ' ';
return str;
}
export function repeat(str: string, i: number) {
let result = '';
while (i--) result += str;