Set repeater data from a predefined JavaScript array

Title says it all. I have an array already in memory. How can I set a repeater’s data based off of the values I have in there?

https://www.wix.com/corvid/reference/$w.Repeater.html#data

As the documentation states, each object in the data array requires a unique “_id” property. If your array in memory does not have that property, you could add it with code like the following:

let newArray = [];
for(var i=0; i < ArrayInMemory.items.length; i++) {
    ArrayInMemory.items[i]._id = i;
    newArray.push(ArrayInMemory.items[i]);
}
console.log(newArray);

Needs _id . Got it, thanks.