Skip to content
loading...

re: Three dots "..." in JS - Spread and Rest explained VIEW POST

FULL DISCUSSION
 

Cool! Another great example for rest usage is when you want to create a new object based on a existing one while excluding specific properties:
const {password, ...userWithoutPassword} = user;

code of conduct - report abuse