Yes, __proto__ is considered to be obsolete now and instead Object.setPrototypeOf and Object.getPrototypeOf are recommended for a number of reasons. The reasons are explained clearly in javascript.info/prototype-methods.
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.
Hi there, great article and well explained.
Isn't
__proto__
obsolete now? I though thatObject.setPrototypeOf
andReflect.setPrototypeOf
were the successors for that API?Yes, __proto__ is considered to be obsolete now and instead
Object.setPrototypeOf
andObject.getPrototypeOf
are recommended for a number of reasons. The reasons are explained clearly in javascript.info/prototype-methods.