DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
delete the last string from file in typescript
if
(
x
.
lastIndexOf
(
" "
)
>
0
)
{
return
x
.
substring
(
0
,
x
.
lastIndexOf
(
" "
)
)
;
}
else
{
return
x
;
}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#delete
#string
#file
#typescript
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit