DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
return longest string from array
arr.reduce((a, b)=> a.length > b.length ? a : b);
PREVIOUS
NEXT
Tagged:
#return
#longest
#string
#array
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit