Re:A little bit of plain JavaScript can do a lot
by enlyth on Sunday June 21, 2020 @10:09AM
(#23592108)
This approach with destructuring is great but you will need to transpile the code if you're targeting IE11 which is still often the case in enterprise settings unfortunately.
This can be accomplished non-destructively with destructuring.