You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first glance, looks like this could be achieved by simply replacing the extend function you use with one that first creates the "destination" object with Object.create(Object.getPrototypeOf(value)) before assigning the properties to it.
BTW, if you want a test, you can use it npm install https://github.com/Yaojian/ImmutableAssign.git --save before @engineforce merging the pull request.
Hi, great library, I love the idea of not having to use any special structures to achieve immutable updates.
Would it be possible to also support ES6 classes when updating the object? Right now, if I have
and I update
a
, the resulting object no longer has the same__proto__
, so I can't callsay
on it, etc.The text was updated successfully, but these errors were encountered: