I’m trying to clone an object, using lodash’ _.clone
.
However, I want to keep the prototypical inheritance intact for the cloned object. IE 10 is not letting me access __proto__
or even this Object.setPrototypeOf(toObj, Object.getPrototypeOf(fromObj));
and I don’t want to access via call
or apply
on parent object as there are lot of setter and getter method on parent which need to be called from the clone object.
Any suggestion?
After some try, I found this one of my use: