has(key)

Returns whether an entry with the given key exists in a Map.

On collections

Usage

  • has(key)

Example

var dict = new Dict({a: 1, b: 2});
dict.has("b");
dict.has("c");

Related

  • has(value)

    Whether an equivalent value exists in this collection.

  • has(value, equals?)

    Returns whether an equivalent value exists in this collection.