Skip to content

Latest commit

 

History

History
40 lines (6 loc) · 294 Bytes

File metadata and controls

40 lines (6 loc) · 294 Bytes

Screen Shot 2022-04-13 at 14 43 41

function positiveSum(arr) {
   return arr.reduce((a,b)=> a + (b > 0 ? b : 0),0);
}