Hello, I need help for this exercise in JS, Write a function named…

Hello, I need help for this exercise in JS,
Write a function named filter User Profiles that accepts an array of
objects that represent user profiles and a callback function. You
can expect the callback function to take in an object and return
true or false.
filter User Profiles should use the callback function to return an
array of names from the user profiles that, when passed into the
callback function, return true. You can expect all user profiles to
be passed in with a key of “name”.
With a few examples,
const Users = [
{ name: “John”, age: “21”, state: “Florida” },
{ name: “Mary”, age: “57”, state: “California” },
{ name: “Judy”, age: “47”, state: “Texas” },
{ name: “Mike”, age: “32”, state: “New York” }
];
filter User(Users, (user) => user. age > 30); // [“Mary”, “Judy”, “Mike”]
filter User(Users, (user) => user. state === “New York”); // [“Mike”]
***********************************************************************/
function filter User Profiles(users, filter) {

}
Thanks,

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount