hi, how can you filter an array of objects in javascript