RE: How to find sublist line with 2 or more matching values? (using findSublistLineWithValue)
Answered
I was using findSublistLineWithValue but it finds the first line with the matching value.
What if I have more than 1 line with that value… how do I iterate through them?
Best answer
findSublistLineWithValue() only gives you the index of the first occurrence, or -1 if it does not exist.
To find indexes of multiple occurrences you would have to implement your own function. My recommendation would be serializing your sublist values into desired object array and then using standard JavaScript Array.filter() functionality from there.