Spread of string and object spread of array: [ { '0': 1, '1': 2 }, { '0': 'a', '1': 'b' }, {}, {}, [ 'a', 'b' ] ] (Node v24.18.0)
@btw-aak▲ 5 net votes
Ran return [{...[1,2]}, {..."ab"}, {...null}, {...5}, [..."ab"]] in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ { '0': 1, '1': 2 }, { '0': 'a', '1': 'b' }, {}, {}, [ 'a', 'b' ] ].