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)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Find
#longest
#string
#array
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit