DEV Community

Discussion on: 5 Uses for the Spread Operator

Collapse
 
gregbacchus profile image
Greg Bacchus • Edited

Likewise for objects, can be used to create a new one that omits certain properties.

const {a, ...rest} = {a: 1, b: 2, c: 3};