how to push data as a object in my array and how to set object in state – Reactjs
i want to return a object to my array but it return number values in arry const mappingFunction = (values: any) => { values.forEach((reason: any) => { const selectedReasons: any = []; if (reason?.isChecked === "false") { selectedReasons?.push(reason); } });…