score:0

Accepted answer
locals.map((item, index) => {
 return basicDetails(item, index, myObject[item]);
})

Related Query

More Query from same tag