README
Extended Collections
Modern polyfills of Stage 1 Collection Methods, including additional utility methods adapted from other languages, such as C#, Haskell, Python, Hack, and Ruby to make Collections even more versatile.
Map*
new Map([iterable[, handler]])
Static
Map.from
Map.groupBy
Map.isMap
Map.keyBy
Map.of
Instance
Map.prototype.at
††Map.prototype.deleteAll
Map.prototype.emplace
Map.prototype.every
Map.prototype.filter
Map.prototype.findKey
Map.prototype.find
Map.prototype.hasAll
Map.prototype.includes
Map.prototype.keyOf
Map.prototype.mapKeys
Map.prototype.mapValues
†Map.prototype.merge
Map.prototype.partition
Map.prototype.random
Map.prototype.randomKey
Map.prototype.reduce
Map.prototype.some
Map.prototype.uniqueBy
††Map.prototype.update
*If a method can be called on both keys and values, the method will target the Map's values by default and will have an implementation which targets the Map's keys (e.g., .find
and .findKey
)
† .mapValues
is called .map
for consistency
†† Adapted to work with Map
Planned
Map.prototype.flat
Map.prototype.flatMap
Set
new Set([iterable[, coerceValue]])
Static
Instance
Set.prototype.addAll
Set.prototype.at
*Set.prototype.copyTo
Set.prototype.deleteAll
Set.prototype.difference
Set.prototype.every
Set.prototype.filter
Set.prototype.find
Set.prototype.hasAll
Set.prototype.intersection
Set.prototype.isDisjointFrom
Set.prototype.isSubsetOf
Set.prototype.isSupersetOf
Set.prototype.join
Set.prototype.map
Set.prototype.partition
Set.prototype.reduce
Set.prototype.some
Set.prototype.symmetricDifference
Set.prototype.union
* Adapted to work with Set
Planned
Set.prototype.flat
Set.prototype.flatMap