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
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Больше
Psychosis: Etymology
EtymologyThe word psychosis was introduced to the psychiatric literature in 1841 by Karl...
What Are Utility Bills?
What Are Utility Bills?
Utility bills are regular invoices that households and businesses...
A Brief Overview of Art History: A Journey Through Time and Expression
Art history is the study of the visual arts across different cultures and periods, revealing how...
What Is a Marketing Strategy?
Introduction
Every successful business, from global corporations to local startups,...
Major Companies: Pillars of the Global Economy
In the interconnected world of the 21st century, certain companies have emerged as titans,...