Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Map.hasKey

hasKey($key)

Description

Return true if $key exists.

{ a: 1, b: 2, c: 3 }.has('b');
//= true

{ a: 1, b: 2, c: 3 }.has('z');
//= false

See Also