THT is in early Beta. We welcome contributors & feedback.

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