Robin Pokorny
1 min readApr 15, 2019

--

Nice article Serdar!

To answer your question, I like the spread operator the most. Especially the part that it is easy to either provide defaults or override properties:

const clone = {
age: 30, // if person has no age use 30
...person,
name: 'Robin' // name will always be Robin
};

Looking forward to your next article!

--

--

Robin Pokorny
Robin Pokorny

Written by Robin Pokorny

Architecture & Tech Leadership — Speaks — Loves maths — Reads specs — Podcasts — Lives in Berlin — robinpokorny.com

Responses (1)