underscore
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Values

maps.Values returns the values of a map in unspecified order.

package main

import (
 "fmt"
 m "github.com/rjNemo/underscore/maps"
)

func main() {
 fmt.Println(m.Values(map[int]string{1:"a",2:"b"})) // e.g., ["b" "a"]
}