There is a function which create the same objects (with different values of ID, task and point) and push it to array Box. And i want to get each number of object, and show it to user on page. 1,2,3,4,5,6.... How to do it?
box: [{
id: shortid.generate(),
task: action.task,
point: false
}]
indexof object in an array. And like Eugen Sunic comment,array.map((item, index)=>{})has index parameter. check:developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…