JavaScript has()

0
6K

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.

Căutare
Categorii
Citeste mai mult
Financial Services
How perfectly competitive firms make output decisions
Key points As a perfectly competitive firm produces a greater quantity of output,...
By Mark Lorenzo 2023-02-21 15:16:17 0 8K
Financial Services
The tradeoff between economic output and environmental protection
Key points Depending on their income levels and political preferences, different...
By Mark Lorenzo 2023-07-28 20:15:43 0 226K
Социальные проблемы
Капоне. Лицо со шрамом. Capone. (2020)
Вернувшись из тюрьмы, Аль Капоне продолжает оставаться предметом пристального внимания ФБР. Ведь...
By Nikolai Pokryshkin 2022-10-17 20:59:18 0 22K
Mental Health
Dementia: Early
In the early stage of dementia, symptoms become noticeable to other people. In addition, the...
By Kelsey Rodriguez 2023-07-19 19:22:46 0 7K
Asia
Welcome to Asia!
The largest part of the world, washed by three oceans and accommodating 53 states, Asia on the...
By FWhoop Xelqua 2022-09-13 14:44:49 0 23K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov