filtrar matrizes js

let newArray = array.filter(function(item) {
  return condition;
});
Philan ISithembiso