JavaScript has()

0
11Кб

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.

Поиск
Категории
Больше
Financial Services
Types of market-oriented environmental tools
Key points The three main categories of market-oriented environmental policies are...
От Mark Lorenzo 2023-02-07 17:15:56 0 12Кб
Истории
Monty Python and the Holy Grail. (1975)
King Arthur and his Knights of the Round Table embark on a surreal, low-budget search for the...
От Leonard Pokrovski 2023-02-21 14:48:48 0 23Кб
Oceania
Oceania
Oceania is the collective name for a vast cluster of islands and atolls in the central and...
От FWhoop Xelqua 2023-03-27 17:42:36 0 22Кб
Социальные проблемы
Последний Парадизо. The Last Paradiso. (2021)
Италия, 1950-е.Свободолюбивый фермер борется за лучшие условия труда.Он мечтает о любви,...
От Nikolai Pokryshkin 2022-09-16 18:07:46 0 27Кб
История
Монти Пайтон и священный Грааль. Monty Python and the Holy Grail. (1975)
Король Артур и рыцари Круглого стола отправляются в невероятное путешествие на поиски Святого...
От Nikolai Pokryshkin 2023-02-20 12:30:09 0 29Кб

BigMoney.VIP Powered by Hosting Pokrov