JavaScript has()
نشر بتاريخ 2023-05-16 11:21:29
0
9كيلو بايت
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.
البحث
الأقسام
- Arts
- Business
- Computers
- الألعاب
- Health
- الرئيسية
- Kids and Teens
- مال
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
إقرأ المزيد
How to study to become a doctor in different countries of the world
How to study to become a doctor in different countries of the world
Australian National...
Top Conflict Management Interview Questions With Answers in 2025
Conflict is inevitable in any workplace, but how it’s managed can determine team success,...
How AI is Impacting Entrepreneurship
In recent years, Artificial Intelligence (AI) has emerged as a game-changing technology,...
What Role Does Data and Market Research Play in Product Strategy?
When it comes to shaping product strategy, there is one ingredient that consistently separates...
What Is the CEO's Vision for the Future?
Exploring the CEO's Goals and Aspirations Reveals Their Strategic Direction and Long-Term...