Posts by Rômulo Melo • 43 points
1 post
-
4
votes1
answer77
viewsQ: Can I use Object.assign to assign properties to this in Javascript?
I’m learning about objects now and I’d like to know if it’s possible to use Object.assign to assign all properties to this of a class in Javascript. Example: class Foo { name; email; phone;…