3 ms·
Destructuring only really makes sense for simple struct-like data structures. If you are worrying about prototypes you are destructuring the wrong things. Dupli
by mekkkkkk 5y ago
Destructuring only really makes sense for simple struct-like data structures. If you are worrying about prototypes you are destructuring the wrong things. Duplicating class instances is almost always something that you'll need to do manually or through serialization in OOP afaik.
- eatonphil 5y agoAll I did was try to put some helper methods on data classes. :D But yeah clearly I'm going against the grain.