JavaScript has()
Posted 2023-05-16 11:21:29
0
5K
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.
Search
Categories
- Arts
- Business
- Computers
- Games
- Health
- Home
- Kids and Teens
- Money
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Read More
How to Effectively Measure Customer Satisfaction: A Guide to CSAT
Customer satisfaction is one of the key metrics of customer service, and it's an axiom. It allows...
What is business forecasting?
Business forecasting is the practice of using tools and techniques to predict future developments...
Badminton
Badminton is not just a backyard game but a sport that combines agility, strategy, and skill into...
Мое сердце разрывается. My Heart Goes Boom!. (2020)
Мюзикл, основанный на хитах популярной итальянской певицы Рафаэллы Карра. Мария с детства мечтала...
Властелин колец: Братство Кольца. The Lord of the Rings: The Fellowship of the Ring. (2001)
Сказания о Средиземье — это хроника Великой войны за Кольцо, длившейся не одну тысячу лет....