JavaScript has()

0
4K

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.

Cerca
Categorie
Leggi tutto
Organizations
Helpful Health Organizations: Promoting Well-Being and Access to Care
Health is one of the most critical aspects of human life, influencing not only individual...
By Dacey Rankins 2024-11-11 16:16:16 0 2K
Online Writing
133 sites that pay for articles.
If you write articles, I advise you to pay attention to websites. They pay well, while the range...
By FWhoop Xelqua 2022-12-18 16:13:47 0 56K
Programming
Raspberry PI Pros & Cons
Five Pros 5. Vast Peripheral Support Raspberry Pi comes with 26 GPIO Pins which are very useful...
By Jesse Thomas 2023-07-05 22:49:05 0 7K
Жизненные вопросы
История семьи Блум. Penguin Bloom. (2021)
Сэм та долго и старательно готовилась к отпуску в кругу семьи в Таиланде, что была настроена на...
By Nikolai Pokryshkin 2022-09-17 10:30:49 1 22K
История
1917. (2019)
6 апреля 1917 года, разгар Первой мировой войны, Западный фронт на севере Франции. Британский...
By Nikolai Pokryshkin 2023-02-01 22:53:04 0 26K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov