mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 10:36:43 +00:00
27 lines
686 B
Markdown
27 lines
686 B
Markdown
# Underscore
|
|
|
|

|
|

|
|
|
|
`underscore` is a `Go` library that provides useful functional programming helpers without extending any built-in
|
|
objects.
|
|
|
|
It is mostly a port from the `underscore.js` library based on generics brought by `go1.18`.
|
|
|
|
## Functions
|
|
|
|
`underscore` provides 100s of functions that support your favorite functional helpers
|
|
|
|
### Collections
|
|
|
|
- `map`
|
|
- `filter`
|
|
- `reduce`
|
|
- `each`
|
|
- `some`
|
|
- `every`
|
|
- `find`
|
|
- `contains` (only numerics values at the moment)
|
|
- `max`
|
|
- `min`
|
|
- `partition`
|