JavaScript has()
نشر بتاريخ 2023-05-16 11:21:29
0
8كيلو بايت
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
إقرأ المزيد
55 Business Ideas For Startups 2024: The Best Ideas To Start A Business This Year
55 Business Ideas For Startups 2024: The Best Ideas To Start A Business This Year...
Reddit API Pricing
Reddit began shutting down some third-party apps after weeks of outrage over its API pricing...
How does the CEO handle failure? Insights into the CEO's approach to setbacks can offer valuable lessons in resilience and adaptability.
In the high-stakes world of corporate leadership, failure is inevitable. Even the most successful...
Prisoners. (2013)
When Keller Dover's daughter and her friend go missing, he takes matters into his own hands as...
How Will I Market My Business?
Marketing is the lifeblood of any business. Whether you're just starting out or looking to expand...