UNPKG

@modern-kit/utils

Version:
12 lines (10 loc) 280 B
function repeatCharacters(value, repeatCount) { let result = ""; if (repeatCount <= 1) return value; for (let i = 0; i < value.length; i++) { result += value[i].repeat(repeatCount); } return result; } export { repeatCharacters }; //# sourceMappingURL=index.mjs.map