The object Destructuring (8) one was new to me, nice!
(4) can be tidy in small projects, but bigger ones where any coding standard should be followed then it would not be applicable. There's benefits to always use brackets, even though there's only one action within.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The object Destructuring (8) one was new to me, nice!
(4) can be tidy in small projects, but bigger ones where any coding standard should be followed then it would not be applicable. There's benefits to always use brackets, even though there's only one action within.