I have the following:
const entries =
[
["mango", 2],
["orange", 3],
["strawberry", 0],
["banana", 10]
]
I would like to iterate over the arrays inside entries[], remove any arrays that have a 0 and have them going in descending order, so the above would change to:
newArr =
[
["banana", 10]
["orange", 3]
["mango", 2]
]
Thanks.
filterandsort