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
Больше
How to Create a Budget and Save Money: A Practical Guide to Managing Income, Expenses, and Spending
How to Create a Budget and Save Money: A Practical Guide to Managing Income, Expenses, and...
How Do I Speak More Clearly and Avoid Filler Words?
Clear speaking is one of the most noticeable signs of confidence and credibility. Whether you're...
What Legacy Does the CEO Aim to Leave?
Every CEO eventually steps down, but the mark they leave behind can endure for generations. While...
Who Are Some Notable Silicon Valley Billionaires?
Silicon Valley has long been the epicenter of technological innovation, home to many of the...
What is Bootstrapping in Business?
Bootstrapping is a popular method of building a business from the ground up without relying on...