I am working on a project that involves 6 lists of objects with varying sizes.
My task is to iterate through all the lists in a specific order, starting from the smallest list to the largest one.
var list_1 = [...] // length 24
var list_2 = [...] // length 4
var list_3 = [...] // length 3
var list_4 = [...] // length 4
var list_5 = [...] // length 11
var list_6 = [...] // length 2
// I need a code snippet here to loop through each list in ascending order
list_6.forEach(...) // length 2
list_3.forEach(...) // length 3
list_2.forEach(...) // length 4
list_4.forEach(...) // length 4
list_5.forEach(...) // length 11
list_1.forEach(...) // length 24
If anyone has a straightforward solution for this issue, I would greatly appreciate it. Thank you!