Skip to content
Advertisement

Iterate over a list of values using javascript

I am looking to iterate over a list of values using javascript.

I have a list like this

JavaScript

My goal is to pass each row into different functions based on the label. I am trying to figure out if a multidimensional array is the best way to go.

Advertisement

Answer

JavaScript

You get to define the matchesLabel function, it should return true if the item needs to be passed to your function.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement