JavaScript has()
Posted 2023-05-16 11:21:29
0
10K
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
Taxi Driver. (1976)
A mentally unstable veteran works as a nighttime taxi driver in New York City, where the...
How Are Potential Profits Used in a Social Enterprise?
Social enterprises are built on the idea that business can be a force for good. Unlike...
Exploring Society's Subcultures: Unveiling the Tapestry of Diversity
Society is a kaleidoscope of human experiences, where individuals come together, each bringing...
Digital marketing
Digital marketing is a way to promote goods and services over the Internet. To find new...
Psycho. (1960)
A Phoenix secretary embezzles $40,000 from her employer's client, goes on the run and checks into...