I'd like to filter this data for unique sub-arrays with the second property, so
var arr = [
["foo", "one"],
["bar", "one"],
["baz", "two"],
["qux", "two"]
]
should turn into
var arr = [
["foo", "one"],
["baz", "two"]
]
I could try a manual approach with two nested forEach, but it seems a inefficient. Array.prototype.filter seems to be better suited, but I fear I'm lacking experience to use it properly.
mapfunction. developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…)