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
إقرأ المزيد
Проект «Сила». Project Power. (2020)
В Новый Орлеан завозят капсулы, которые дают проглотившим их суперспособности на 5 минут. Но...
Autism Spectrum: Brain Connectivity
Brains of autistic individuals have been observed to have abnormal connectivity and the degree of...
What are Effective Questions to Ask During Customer Development Interviews?
Customer Development interviews are a critical tool for gathering insights directly from your...
How Can I Start Developing My Leadership Skills?
Leadership is not just a position—it's a practice. Whether you’re a student,...
Understanding Adult Nutrition: Fueling Your Body for Health and Wellness
As we navigate through adulthood, our nutritional needs change. Maintaining a balanced diet is...