I have an object
obj = {i: "1"}
and a function that only accepts arrays of objects
const funct = (arr) => {
}
So I need ideally without doing
let arr = []
arr.push(obj)
funct(arr)
do something like
funct([...obj])
To inser the obj into an array directly in the argument, so far I havent been able to do so, since I receive obj is not iterable