Generation

generate functionFri, 02 Dec 2022

Sort a list of strings by lenght

Script function sort(list) { return list.sort((a, b) => a.length - b.length); }

Want to kickstart your project?Use the new AI Studio to create your code