An open API service indexing awesome lists of open source software.

https://github.com/shresht7/collections

A library of utility functions for collections (like arrays, maps and sets).
https://github.com/shresht7/collections

Last synced: 2 months ago
JSON representation

A library of utility functions for collections (like arrays, maps and sets).

Awesome Lists containing this project

README

        

# collections
-------------

A library of utility functions for collections (like arrays, maps and sets).

## `AwesomeMap`

An extension of the Map class with more awesome features.

```ts
import { AwesomeMap } from 'collections'

const map = new AwesomeMap()
// ...
map.filter(v => v % 2 !== 0) // Filters even values out of the map
map.reduce((sum, value) => sum + value, 0) // Reduces the map to the sum of its values
```

---

## 📑 License

[MIT License](./LICENSE)