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
Here's a performance comparison of two different Set shallow copy methods. We have reason to use Set.prototype.difference to ensure optimal Set shallow copy performance.
This will allow Mutative's Set shallow copy performance to improve by 3X to 6X.
newSet(baseState.values());;// vs baseState.difference(newSet());
This is a proposal https://github.com/tc39/proposal-set-methods to add methods like union and intersection to JavaScript's built-in Set class.
It is currently at stage 4: it has been tc39/ecma262#3306. This repository is no longer active.
This would add the following methods:
With the support of the latest major browsers, it is necessary for Mutative to support it as well.
Check compatibility
The text was updated successfully, but these errors were encountered: