Show navigation Before discussing object rest and spread properties, letâs take a trip down memory lane and remind ourselves of a very similar feature. ES2015 array rest and spread elements #Good olâ ECMAScript 2015 introduced rest elements for array destructuring assignment and spread elements for array literals. // Rest elements for array destructuring assignment: const primes = [2, 3, 5, 7, 11]
{{#tags}}- {{label}}
{{/tags}}