JavaScript has()

0
11KB

The has() function of the map object accepts a key in string format and returns a boolean value of true if the specified key exists. Otherwise, the function returns false.

Map is a data structure in JavaScript that allows the storage of [key, value] pairs where any value can be used as either a key or value.

Syntax

mapObject.has(key)

The has() function takes a key in the​ string format. It returns a boolean value that indicates ​the presence of that key in the Map object.

Suche
Kategorien
Mehr lesen
История
Апокалипсис сегодня. Apocalypse Now. (1979)
Во время Вьетнамской войны капитан Уиллард отправляется вверх по реке в Камбоджу со спецзаданием:...
Von Nikolai Pokryshkin 2022-12-11 18:22:10 0 33KB
Telecommunications
Telecommuniations
Telecommunications is communication using electronic equipment such as telephones, computer...
Von FWhoop Xelqua 2023-03-14 18:07:03 0 23KB
Personal Finance
How Do I Qualify for a Mortgage?
How Do I Qualify for a Mortgage? Understanding Credit Score Requirements, Income, Employment...
Von Leonard Pokrovski 2025-11-14 21:38:16 0 4KB
Personal Finance
What Happens If I Miss a Payment?
What Happens If I Miss a Payment? Understanding the Consequences: Late Fees, Credit Impact, and...
Von Leonard Pokrovski 2025-11-06 19:21:14 0 3KB
Жизненные вопросы
Три идиота. 3 Idiots. (2009)
Двое друзей отправляются на поиски пропавшего приятеля. В этом путешествии им предстоит постоянно...
Von Nikolai Pokryshkin 2023-01-08 12:43:36 0 25KB

BigMoney.VIP Powered by Hosting Pokrov