maintain (helper): reorganise some functions in client

This commit is contained in:
Mickael Kerjean
2022-11-10 00:17:22 +11:00
parent c828b22f7a
commit cf0ca5c261
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,5 @@
export function nop() {}
export function leftPad(str, length, pad = "0") {
if (typeof str !== "string" || typeof pad !== "string" || str.length >= length ||
!pad.length > 0) {