JavaScript has()
Posted 2023-05-16 11:21:29
0
6K
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
Green Book. (2018)
A working-class Italian-American bouncer becomes the driver for an African-American classical...
For a Few Dollars More. (1965)
Two bounty hunters with the same intentions team up to track down an escaped Mexican outlaw....
Psychosis: Cannabis
According to current studies, cannabis use is associated with increased risk of psychotic...
Top 9 Useful Writing sites
Your creative process as a science fiction writer may be different from that of your peers, but...
Why Study Biology
Why Study Biology
Biology refers to the natural sciences that study wildlife. The...