DEV Community

Discussion on: Modern JavaScript, 10 things you should be using, starting today

 
softchris profile image
Chris Noring

yes I agree that spread is easier to read than Object.assign().. so are you saying that it doesn't have to be as painful as looping through the keys but rather Object.assign is there and if you want to improve on that use spread syntax?

Thread Thread
 
digioi profile image
Mike DiGioia

I think that is fair to say. Since prior to browser support that was what the transpilers often did for you.