Search
 
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
Name
8+1 =