let\'s say i have arrays with useState in React. In this arrays i have objects
const [myArray, setMyArray] = useState([ { id: 1, name: "Butter", p