TypeScript slice with padEnd
Code\n\nfunction divideString(s: string, k: number, fill: string): string[] {\n  const chunks: string[] = [];\n  for (let i = 0; i < s.length; i += k) {\n    ch
# Code\n```\nfunction divideString(s: string, k: number, fill: string): string[] {\n  const chunks: string[] = [];\n  for (let i = 0; i < s.length; i += k) {\n    chunks.push(s.slice(i, i + k).padEnd(k, fill));\n  }\n  return chunks;\n}\n\n```
['TypeScript', 'JavaScript']