Answers for "how to filter data from an array in javascript"

CSS
0

filter array elements

int[] a = {1,2,3,4};
boolean contains = IntStream.of(a).anyMatch(x -> x == 4);
Posted by: Guest on July-26-2021
0

How to filter data using javascript

result = homes.
  filter(function(p) { return p.price >= 150000 }).
  filter(function(p) { return p.price <= 400000 }).
  filter(function(p) { return p.bathrooms >= 2.5 }) etc
Posted by: Guest on October-29-2021

Code answers related to "how to filter data from an array in javascript"

Browse Popular Code Answers by Language