package
1.0.7
Repository: https://github.com/go-rat/utils.git
Documentation: pkg.go.dev

# Functions

Count counts the number of elements in the collection.
CountBy counts the number of elements in the collection for which predicate is true.
Each iterates over elements of collection and invokes iteratee for each element.
Filter iterates over elements of collection, returning an array of all elements predicate returns truthy for.
First gets the first element of collection.
GroupBy returns an object composed of keys generated from the results of running each element of collection through iteratee.
Keys creates an array of the map keys.
Map manipulates a slice and transforms it to a slice of another type.
Max searches the maximum value of a collection.
Merge merges multiple maps from left to right.
Min search the minimum value of a collection.
Reverse reverses array so that the first element becomes the last, the second element becomes the second to last, and so on.
Shuffle returns an array of shuffled values.
Split returns an array of elements split into groups the length of size.
Sum sums the values in a collection.
To converts a slice of any type to a slice of another type.
ToE converts a slice of any type to a slice of another type with error handling.
Unique returns a duplicate-free version of an array, in which only the first occurrence of each element is kept.
Values creates an array of the map values.