Reduce of empty array without init: THROWN TypeError: Reduce of empty array with no initial value (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran return [].reduce((a,b)=>a+b) in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: Reduce of empty array with no initial value.