`eval(arr.join("*"))`
...is a bit shorter than:
`arr.reduce((p,v)=>p*v,1)`
I just used this as part of day03
github.com/zackpi/aoc24...
`eval(arr.join("*"))`
...is a bit shorter than:
`arr.reduce((p,v)=>p*v,1)`
I just used this as part of day03
github.com/zackpi/aoc24...