JavaScript has()
Posted 2023-05-16 11:21:29
0
8K
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
- Arts
- Business
- Computers
- Giochi
- Health
- Home
- Kids and Teens
- Money
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Leggi tutto
Understanding Senior Health: Key Aspects of Wellness in Later Life
As people age, maintaining good health becomes a critical aspect of quality of life. Senior...
John Wick: Chapter 4. (2023)
John Wick uncovers a path to defeating The High Table. But before he can earn his freedom, Wick...
Navigating Serenity: The Art and Joy of Boating
In the realm of recreational activities, few experiences offer the tranquility and thrill quite...
Frequent Questions and Answers on Project Management
Frequent Questions and Answers on Project Management
Project management plays a vital role in...
Create AI with Python
If you’re just starting out in the artificial intelligence (AI) world, then Python is a...