JavaScript has()
Posté 2023-05-16 11:21:29
0
8KB
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.
Rechercher
Catégories
- Arts
- Business
- Computers
- Jeux
- Health
- Domicile
- Kids and Teens
- Argent
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Lire la suite
How to budget properly
Saving money can be a straightforward process if you approach it with some planning and...
Король Лев. The Lion King. (1994)
У величественного Короля-Льва Муфасы рождается наследник по имени Симба. Уже в детстве...
The Pros and Cons of Investing: Weighing Your Options
Investing is a powerful tool for building wealth and achieving financial goals. However, it comes...
Supercomputing: Unleashing the Power of Advanced Computing
Supercomputing represents the pinnacle of computational capability, enabling researchers and...
The Green Mile. (1999)
The lives of guards on Death Row are affected by one of their charges: a black man accused of...