You cannot assign to this
anywhere in the language.
One option is to merge into this
or other object:
constructor(human) {
Object.assign(this, human);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With