arr.filter concept by amrendra kumar May 28, 2018 JavaScript var arr = [1,2,3]; var x = arr.filter(item => item%2 === 0 ) console.log(x);