JavaScript has()

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.

Rechercher
Catégories
Lire la suite
Marketing and Advertising
What Is Direct Marketing? A Complete Guide
Introduction: Understanding Direct Marketing Direct marketing is one of the oldest yet most...
Par Dacey Rankins 2025-10-02 20:01:28 0 4KB
Aerospace and Defense
Aviation Industry
Aircraft construction is one of the most profitable and at the same time the most...
Par FWhoop Xelqua 2023-07-16 17:12:17 0 23KB
Научная фантастика и фэнтези
Тёмный рыцарь: Возрождение легенды. The Dark Knight Rises. (2012)
Восемь лет назад Бэтмен растворился в ночи, превратившись из героя в беглеца. Приняв на себя вину...
Par Nikolai Pokryshkin 2022-12-25 10:15:19 0 31KB
Business
What Is a Product Roadmap and Why Is It Critical?
A product roadmap is one of the most essential tools in product management. It’s more than...
Par Dacey Rankins 2025-08-18 13:24:17 0 4KB
Ужасы
Сияние. The Shining. (1980)
Джек Торренс с женой и сыном приезжает в элегантный отдалённый отель, чтобы работать смотрителем...
Par Nikolai Pokryshkin 2022-12-17 18:50:47 0 28KB

BigMoney.VIP Powered by Hosting Pokrov