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
Marketing and Advertising
How Do I Launch a New Product Under My Existing Brand?
Launching a new product is one of the most exciting — and risky — endeavors for any...
Por Dacey Rankins 2025-09-25 15:33:51 0 7KB
Social Issues
V for Vendetta. (2005)
In a future British dystopian society, a shadowy freedom fighter, known only by the alias of "V",...
Por Leonard Pokrovski 2023-03-03 19:27:17 0 24KB
Business
What is business forecasting?
Business forecasting is the practice of using tools and techniques to predict future developments...
Por Dacey Rankins 2025-01-09 15:38:09 0 12KB
Социальные проблемы
Капоне. Лицо со шрамом. Capone. (2020)
Вернувшись из тюрьмы, Аль Капоне продолжает оставаться предметом пристального внимания ФБР. Ведь...
Por Nikolai Pokryshkin 2022-10-17 20:59:18 0 36KB
Animal
"Veterinary medicine is exciting!"
"Veterinary medicine is exciting!" Veterinary medicine is a field of scientific knowledge and...
Por Leonard Pokrovski 2024-04-10 21:53:12 0 20KB

BigMoney.VIP Powered by Hosting Pokrov