Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return split.reduce(
(memo, s) => (stringz.length(s) > memo ? stringz.length(s) : memo),
0
)
}
function repeat(str, times) {
return Array(times + 1).join(str)
}
function toPad(str, len, pad) {
const padlen = len - strlen(str)
return str + repeat(pad, padlen)
}
utils.pad = toPad