DEV Community

loading...

Discussion on: Refactoring: My 6 favorite patterns

Collapse
bennykelly profile image
bennykelly

Great article but for number 6, did you actually introduce an object parameter or am I reading that wrong, looks the same?

Collapse
brycedooley profile image
Bryce Author

Thanks. I did, it's using object destructuring. They do look very similar but in the "after" version there are brackets around the params.

Collapse
bennykelly profile image
bennykelly

Ahhhh, thanks for the reply, learned 2 things from this article so! Many thanks again, great article