DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+4 =
Submit