Answers for "js split at index"

1

js split string at index

"How are you?".slice(8, 11);
/*Output: you*/
Posted by: Guest on November-30-2020
1

js split at index

const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]
Posted by: Guest on May-19-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language