rest operator clone
// rest operator

let {...method2} = car
// let {model, ...rst} = car
// let {model, ...car} = {year:"2017", ...car}
rest operator is allows us to skip some propoerties.. we can also use it with spread operator and it will more useful because it can add or update properties at the same time
by Luka Tatarishvili
4 years ago
JavaScript
Objects tutorial 6
0
Pro tip: use ```triple backticks around text``` to write in code fences