JavaScript has()
Postado 2023-05-16 11:21:29
0
11KB
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.
Pesquisar
Categorias
- Arts
- Business
- Computers
- Jogos
- Health
- Início
- Kids and Teens
- Money
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Leia mais
What Legacy Does the CEO Aim to Leave?
Every CEO eventually steps down, but the mark they leave behind can endure for generations. While...
Fight Club. (1999)
An insomniac office worker and a devil-may-care soap maker form an underground fight club that...
Monsters, Inc. (2001)
In order to power the city, monsters have to scare children so that they scream. However, the...
What Is the Difference Between a CFO and a CEO?
What Is the Difference Between a CFO and a CEO?
In any successful organization,...
Bootstrap Pros & Cons
What Are the Advantages of Bootstrap?
There’s a reason why 12 million...