Adding pad function

This commit is contained in:
Matias committed 2019-04-24 13:28:42 -03:00
1 parent f929752f69
commit 489e855170
1 file changed
+6 -1
+6 -1
View File
@@ -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;
}
};