mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 03:54:59 +08:00
maintain (helper): reorganise some functions in client
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user