UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

21 lines 509 B
"use strict"; /** * Return a string adding N times of fillchar or blanks to the left side of target * @param length * @param fillChar * @return string */ Object.defineProperty(exports, "__esModule", { value: true }); exports.padLeft = void 0; const padLeft = (target, length, fillChar) => { let res = ""; if (length === 0) { res = ""; } else { res = target.padStart(length, fillChar); } return res; }; exports.padLeft = padLeft; //# sourceMappingURL=padLeft.js.map