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)
 
PREVIOUS NEXT
Tagged: #Find #longest #string #array
ADD COMMENT
Topic
Name
4+9 =