mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
* change documentation theme and structure * add config files * fix links * add build doc command Co-authored-by: Ruidy <rnemausat@newstore.com>
289 B
289 B
| title | date |
|---|---|
| Contains | 2022-03-21T13:30:29-04:00 |
Contains returns true if the value is present in the slice.
package main
import (
"fmt"
u "github.com/rjNemo/underscore"
)
func main() {
nums := []int{1, 3, 5, 7, 9}
fmt.Println(u.Contains(nums, 5)) // true
}