How to break map loop in javascript. filter( (u) => row.