- Added to make all collections similar in capabilities. Should mimic Array.prototype.filter as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.map as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.find as close as reasonable.
- Problematic behaviour
- Added to make all collections similar in capabilities. Should mimic Array.prototype.reduce as close as reasonable.
- Static linters can check if function used by Set.prototype.reduce is associative and commutative. Otherwise, results can be surprising to user.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.join as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.some as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.every as close as reasonable.
Set.prototype.add
can't be extended due to pattern ofarr.forEach(set.add, set)
andarr.forEach(set.add.bind(set))
.- Doesn't create new set like
Set.prototype.union
Set.prototype.delete
can't be extended due to pattern ofarr.forEach(set.delete, set)
andarr.forEach(set.delete.bind(set))
.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.filter as close as reasonable.
TBA
TBA
- Added to make all collections similar in capabilities. Should mimic Array.prototype.reduce as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.find.
- This methods find value and returns it. It can be reasonable to return pair
[key, value]
or merge it withfindKey
.
- This methods find value and returns its key. It can be reasonable to return pair
[key, value]
or merge it withfind
.
- This methods returns first key where
SameValueZero(p.[[Value]], searchElement)
is true.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.some as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.some as close as reasonable.
- Added to make all collections similar in capabilities. Should mimic Array.prototype.includes as close as reasonable.
TBA
TBA
TBA
TBA
TBA