Adding pad function
This commit is contained in:
1 parent
f929752f69
commit
489e855170
1 file changed
+6
-1
+6
-1
@@ -379,7 +379,7 @@
|
||||
periodsControlLoop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let dependencyIndex = 0;
|
||||
dataFiles = [];
|
||||
@@ -772,4 +772,9 @@
|
||||
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
|
||||
}
|
||||
}
|
||||
|
||||
function pad(str, max) {
|
||||
str = str.toString();
|
||||
return str.length < max ? pad(" " + str, max) : str;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user