DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js how to convert all string in array into integer
array
=
[
'1'
,
'2'
,
'3'
]
arrayInt
=
array
.
map
(
Number
)
//arrayInt = [1,2,3]
PREVIOUS
NEXT
Tagged:
#js
#convert
#string
#array
#integer
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit