UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

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