DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Find the longest string from a given array
let longStr = arr.reduce((x,y)=> x.length > y.length ? x:y)
PREVIOUS
NEXT
Tagged:
#Find
#longest
#string
#array
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit