js split at index
"How are you?".slice(8, 11);
/*Output: you*/
4.1
9
const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]
Thank you!
9
0
Are there any code examples left?
New code examples in category TypeScript