JavaScript has()
Posté 2023-05-16 11:21:29
0
6KB
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
Desktop Publishing
Desktop publishing system (NIS) is a set of equipment for preparing the original layout of the...
What Are Common Barriers to Innovation, and How Can They Be Overcome?
Innovation is often hailed as the key to progress and growth in any organization or industry....
Psychosis: Disorganization of speech/thought or behavior
Disorganization is split into disorganized speech (or thought), and grossly disorganized motor...
FOX 10 Live TV from Phoenix USA
Raw & unfiltered. Watch a non-stop stream of breaking news, live events and stories across...
Real interest rates and international capital flows
There is more to international exchange than the flow of goods and services across borders:...