Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

js split at index

const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]
 
PREVIOUS NEXT
Tagged: #js #split #index
ADD COMMENT
Topic
Name
5+4 =