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.

Поиск
Категории
Больше
Business
How Do CEOs Attract and Retain Top Leadership Talent?
In a competitive, fast-moving business environment, the ability to attract and retain...
От Dacey Rankins 2025-08-07 17:33:29 0 10Кб
Business
Product marketing: what is it and why is it needed in IT  
Product marketing: what is it and why is it needed in IT   Launching a new product on...
От Leonard Pokrovski 2024-08-28 21:41:43 0 23Кб
Personal Finance
What Other Costs Come With Taking Out a Mortgage?
What Other Costs Come With Taking Out a Mortgage? For many people, buying a home is the largest...
От Leonard Pokrovski 2025-11-14 21:39:08 0 4Кб
Science Fiction and Fantasy
The Dark Knight. (2008)
When the menace known as the Joker wreaks havoc and chaos on the people of Gotham, Batman must...
От Leonard Pokrovski 2022-11-01 19:46:51 0 31Кб
Employment
Recruitment agencies
A recruitment agency is an organization that professionally mediates between the applicant and...
От FWhoop Xelqua 2023-03-16 18:42:47 0 24Кб

BigMoney.VIP Powered by Hosting Pokrov