Skip to content
Latest: Publish JavaScript Packages to NPM Like a Pro!

Edit It: Use Rest Operator to Enclose the Rest of Some Values into an Array

Home>Spread Operator in JavaScript>Edit It: Use Rest Operator to Enclose the Rest of Some Values into an Array

Edit It: Use Rest Operator to Enclose the Rest of Some Values into an Array

This code shows how to use the Rest Operator to enclose the rest of some user-supplied values into an array.

See it on StackBlitz