Answers for "how separate string with index in javascript"

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
0

how to separate string elements in javascript

let string = "How are you?";
const newArr = string.split(" ");
Posted by: Guest on September-01-2021

Code answers related to "how separate string with index in javascript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language