Open
Description
As per MDN and ECMASCRIPT, use of this approach seems to be deemed legacy and will at some point be withdrawn from browsers.
The alternative seems to be Object.create
?
// considered bad practice
let admin = {
__proto__: userProxy,
_name: "Admin"
};
// recommended
let admin = Object.create(userProxy);
admin._name = 'Admin'
Metadata
Metadata
Assignees
Labels
No labels