Documentation
¶
Overview ¶
Package lda implements lodash core api
Index ¶
- func Assign(obj interface{}, sources ...interface{})
- func Chunk(array []interface{}, size int) [][]interface{}
- func Difference(array []interface{}, values ...interface{}) []interface{}
- func DifferenceBy(array []interface{}, values []interface{}, iteratee interface{}) []interface{}
- func DifferenceWith(array []interface{}, values []interface{}, comparator utils.Comparator) []interface{}
- func Filter(collection []interface{}, predicate interface{}) []interface{}
- func GroupBy(collection []interface{}, iteratee interface{}) map[string][]interface{}
- func Intersection(arrays ...[]interface{}) []interface{}
- func IntersectionBy(array []interface{}, values []interface{}, iteratee interface{}) []interface{}
- func IntersectionWith(array []interface{}, values []interface{}, comparator utils.Comparator) []interface{}
- func IsNil(i interface{}) bool
- func KeyBy(collection []interface{}, iteratee interface{}) map[string]interface{}
- func Map(collection []interface{}, iteratee interface{}) []interface{}
- func Values(obj interface{}) []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assign ¶
func Assign(obj interface{}, sources ...interface{})
assign sources props to obj (only obj=>obj,map=>map)
func Chunk ¶
func Chunk(array []interface{}, size int) [][]interface{}
chunk array to list array with size
func Difference ¶
func Difference(array []interface{}, values ...interface{}) []interface{}
remove difference values from array, complex object use DifferenceBy or DifferenceWith
func DifferenceBy ¶
func DifferenceBy(array []interface{}, values []interface{}, iteratee interface{}) []interface{}
remove difference values from array by field name or func
func DifferenceWith ¶
func DifferenceWith(array []interface{}, values []interface{}, comparator utils.Comparator) []interface{}
remove difference values from array by comparator func
func Filter ¶
func Filter(collection []interface{}, predicate interface{}) []interface{}
filter collection use map field or func
func GroupBy ¶
func GroupBy(collection []interface{}, iteratee interface{}) map[string][]interface{}
group by collection use field name or func
func Intersection ¶
func Intersection(arrays ...[]interface{}) []interface{}
find intersection from arrays, complex object use IntersectionBy or IntersectionWith
func IntersectionBy ¶
func IntersectionBy(array []interface{}, values []interface{}, iteratee interface{}) []interface{}
find intersection by field name or func
func IntersectionWith ¶
func IntersectionWith(array []interface{}, values []interface{}, comparator utils.Comparator) []interface{}
find intersection by comparator func
func KeyBy ¶
func KeyBy(collection []interface{}, iteratee interface{}) map[string]interface{}
key by collection use field name or func
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.