How to reduce an array in JavaScript #shorts

Published --