Answers for "how to find array by shortest length using .sort javascript"

2

javascript sorting array string by len

array.sort(function(a, b){return b.length - a.length});
Posted by: Guest on March-04-2020

Code answers related to "how to find array by shortest length using .sort javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language