The Utility of Rest & Spread
Array & Object Rest/Spread
... is called the rest operator and the spread operator, depending on its usage. It can spread items in an array out into another array. It can spread properties of an object into another object.
Array rest/spread was introduced in ES2015. Object rest/spread was introduced in 2017.
This lesson has been placed here because it ties in with the discussion of
bind. Let’s dive in.