Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Map.keyOf

keyOf($value) -> string

Description

Return the first Map key found for the given value.

If the value does not exist in the Map, an empty string will be returned.

$map = { a: 1, b: 2, c: 3 }

$map.has('b')
//= true

$map.has('X')
//= false

See Also