DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
exclude extension from filename javascript
const
file
=
'test.jpg'
;
const
filename
=
file
.
split
(
'.'
)
.
slice
(
0
,
-
1
)
.
join
(
'.'
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#exclude
#extension
#filename
#javascript
ADD COMMENT
Topic
COMMENT
Name
3+3 =
Submit