I have a simple 2d array containing x, y coordinates like this:
var c = [
[1,10]
[2,11]
[3,12]
[4,13]
[5,15]
];
How can I extract only pairs that satisfy TWO conditions (one for x, one for y) and put those in its own array? For instance:
for Each of c {
if (x > 3 && y > 13) {
push.NewArray
}
}
Newbie to JS here and can't find this on the web. Thanks in advance for any help.