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.

Поиск
Категории
Больше
Parliamentary Procedure
Navigating the Chambers: The Importance of References in Parliamentary Procedure
Navigating the Chambers: The Importance of References in Parliamentary Procedure Parliamentary...
От Leonard Pokrovski 2024-05-22 19:40:28 0 18Кб
Music
14 Calm Ambient Music for Relaxation, Sleep, Meditation, Focus & Stress Relief Background
  Calm Ambient Music for Relaxation, Sleep, Meditation, Focus & Stress Relief In...
От Gpykin 2025-09-06 21:52:08 0 14Кб
Business
How Do I Find the Right Mentor or Coach?
Finding the right mentor or coach can be a transformative step in your personal or professional...
От Dacey Rankins 2025-07-09 14:22:21 0 6Кб
Социальные проблемы
Охота. The Hunt. (2020)
Несколько человек имели неосторожность обсуждать в групповом чате охоту на людей. Некоторое время...
От Nikolai Pokryshkin 2022-10-22 16:28:04 0 29Кб
Жизненные вопросы
Человек-слон. The Elephant Man. (1980)
Доктор Тривз находит Меррика в «фрик-шоу». Внешность его настолько ужасающая, что ему...
От Nikolai Pokryshkin 2023-02-28 13:48:21 0 21Кб

BigMoney.VIP Powered by Hosting Pokrov