filter Using higher order function, filter to filter out elements within an array that do not meet the criteria provided.