# Spread of string and object spread of array: [ { '0': 1, '1': 2 }, { '0': 'a', '1': 'b' }, {}, {}, [ 'a', 'b' ] ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/spread-of-string-and-object-spread-of-array-0-1-1-2-0-a-1-b-a-b-node-v24-18-0-a419b07b4c14
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, spread

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' ] ].
