Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating resource.
Please try to avoid dependencies to third-party libraries and frameworks.
Implementation edit is for fixing errors and enhancing with metadata.
Instead of changing the code of the snippet, consider creating another JS implementation.
func containsValue(m map[K]T, v T) bool { for _, x := range m { if x == v { return true } } return false }
print "Found it!" if exists $m{$v};
m.containsValue(v);
v in m.values()
m.value?(v)
Map.values(m) |> Enum.member?(v)
elem v (elems m)
in_array($v, $m, true);
!m.values.find(_ == v).isEmpty()
[...m.values()].includes(v)