UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

17 lines 386 B
/** * Return a string adding N times of fillchar or blanks to the left side of target * @param length * @param fillChar * @return string */ export const padLeft = (target, length, fillChar) => { let res = ""; if (length === 0) { res = ""; } else { res = target.padStart(length, fillChar); } return res; }; //# sourceMappingURL=padLeft.js.map