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).
- Host: GitHub
- URL: https://github.com/shresht7/collections
- Owner: Shresht7
- License: mit
- Created: 2022-06-28T19:17:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T20:39:47.000Z (4 months ago)
- Last Synced: 2025-01-27T09:09:43.193Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)