Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Map.prototype.has()

2 tags 1 category

The has() method of Map instances returns a boolean indicating whether an entry with the specified key exists in this Map or not.

Return value: Returns true if an entry with the specified key exists in the Map object; otherwise false.

Parameters: key The key of the entry to test for presence in the Map object. Object keys are compared by reference, not by value.

Syntax example: has(key)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…