How to divide array into two arrays depending on condition?
I’m trying to divide one array into two depending on a condition, i have an array that i have already filtered and i’m doing a forEach to loop trough it: pending.forEach((items) => { console….