split string at specific index js code example
Example: js split at index
const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]
const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]