JS Split bei Index
const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]
florinrelea
const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]