JSFiddle - React, Tailwind, and code Playground

by Shang-De You

JavaScript

arr = [[1,2],[2,3],[3,4]]
let total = arr.reduce((a,b) => {
	console.log(a[0]+b[0])
  return a[0]+b[0]
}, [0])
console.log('total:' + total)