JSFiddle - React, Tailwind, and code Playground
by hescano
JavaScript
var number = function(busStops){
return busStops.map((n) => n[0] - n[1]).reduce((a, b) => a + b, 0);
}
console.log(number([[10,0],[3,5],[5,8]]))
by hescano
var number = function(busStops){
return busStops.map((n) => n[0] - n[1]).reduce((a, b) => a + b, 0);
}
console.log(number([[10,0],[3,5],[5,8]]))