Answers for "filter javasciprt functions"

CSS
107

filter javascript array

var words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];

const result = words.filter(word => word.length > 6);

console.log(result);
Posted by: Guest on November-11-2019
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

Browse Popular Code Answers by Language