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.

Pesquisar
Categorias
Leia mais
Жизненные вопросы
Убить пересмешника. To Kill a Mockingbird. (1962)
Юрист из Алабамы в одиночку воспитывает двоих детей. В обстановке экономической депрессии,...
Por Nikolai Pokryshkin 2023-01-23 15:27:26 0 25KB
Социальные проблемы
Фортуна. Fortuna. (2021)
Фортуна (6 лет) живет со своей матерью в безымянном пригороде. Она проводит время с двумя...
Por Nikolai Pokryshkin 2022-09-14 22:50:15 0 26KB
News and Media
Fashion Bloggers
There are now more channels of information than ever before – we get news from social...
Por FWhoop Xelqua 2022-12-07 15:47:41 0 23KB
Financial Services
Changes in equilibrium price and quantity: the four-step process
Key points There is a four-step process that allows us to predict how an event...
Por Mark Lorenzo 2023-02-16 13:07:37 0 23KB
Business
What to do if you have a mobile app idea: a beginner's guide.
What to do if you have a mobile app idea: a beginner's guide. One fine morning, you wake up with...
Por Leonard Pokrovski 2024-08-28 22:25:54 0 22KB

BigMoney.VIP Powered by Hosting Pokrov