SyntaxFix
Write A Post
Hire A Developer
Questions
const cloneData = (dataArray) => { newData= [] dataArray.forEach((value) => { newData.push({...value}) }) return newData }