write a function in javascript with two arguments- an array of items and a max amount- and returns an item array from an object array code example
Example: js array
const users = ["Mark", "Greg"];
const users = ["Mark", "Greg"];