JavaScript has()
نشر بتاريخ 2023-05-16 11:21:29
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.
البحث
الأقسام
- Arts
- Business
- Computers
- الألعاب
- Health
- الرئيسية
- Kids and Teens
- مال
- News
- Personal Development
- Recreation
- Regional
- Reference
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Личное развитие
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
إقرأ المزيد
7 Common Conflict Styles That Show Up in Relationships, According to Experts
Conflict is a natural part of any relationship, whether romantic, familial, or professional....
Top 10 attractions in the Middle East
But did you know that the Middle East is made up of 14 different...
What Is Economic Development?
What Is Economic Development?
Economic development is a broad concept that refers to the...
Spider-Man: Into the Spider-Verse. (2018)
Teen Miles Morales becomes the Spider-Man of his universe, and must join with five spider-powered...
Common Conditions and Diseases Found in Children: A Guide for Parents and Caregivers
Children are at a unique stage of development where their bodies and...