I need to create multiple objects, and each one must have an ID.
All of them will be inside an Array.
So it will look like this:
const array = [
{
id: 1,
bla: "bla"
},
{
id: 2,
bla: "bla"
},
{
id: 3,
bla: "bla"
}
]
my question is, Is there a way to create a function, the will return a number that i can put inside those id's?