JavaScript Filter method in JavaScript with ES6 easy Examples The filter method in JavaScript filters arrays or arrays of objects for certain criteria from the existing array and creates a new array. Here are some examples. 3 min read