JavaScript has()

0
11Кб

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.

Поиск
Категории
Больше
Жизненные вопросы
Форрест Гамп. Forrest Gump. (1994)
Сидя на автобусной остановке, Форрест Гамп — не очень умный, но добрый и открытый парень...
От Nikolai Pokryshkin 2022-11-05 21:02:16 0 35Кб
Business
What Are the Tax Implications?
When you start a business, one of the most important considerations is understanding the tax...
От Dacey Rankins 2025-02-05 15:46:20 0 15Кб
Научная фантастика и фэнтези
Человек-паук: Нет пути домой. Spider-Man: No Way Home. (2021)
Жизнь и репутация Питера Паркера оказываются под угрозой, поскольку Мистерио раскрыл всему миру...
От Nikolai Pokryshkin 2023-02-25 15:11:38 0 26Кб
Библиотеки
Библиотека бизнесмена.
Государство и право. Мир «Игры престолов» — это мир подлости, разврата и...
От Alexander Petrov 2023-01-20 23:50:16 0 35Кб
Mental Health
Psychosis: Treatment
Early civilizations considered madness a supernaturally inflicted phenomenon. Archaeologists have...
От Kelsey Rodriguez 2023-05-22 16:54:45 0 11Кб

BigMoney.VIP Powered by Hosting Pokrov