Filter method in JavaScript- How and when to use it?

Filter method in JavaScript- How and when to use it?