Discover Packages
github.com/baking-code/godash
remove
package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Dec 4, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Remove[T interface{}](input *[]T, predicate func(o T, i int , orig []T) bool ) []T
Removes all elements from input that predicate returns truthy for and returns an slice of the removed elements.
The predicate is invoked with three arguments: (value, index, input).
Note: This mutates input
Source Files
¶
Click to show internal directories.
Click to hide internal directories.