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.

Поиск
Категории
Больше
Ужасы
Нечестивые. The Unholy. (2021)
На дереве, где 150 лет назад была повешена и сожжена обвинённая в колдовстве, глухонемая...
От Nikolai Pokryshkin 2022-09-21 10:56:12 0 39Кб
Computers
Taking the First Steps into Computer Engineering
Simplified Computer Hardware DiagramA simplified diagram of computer hardware includes the...
От Dacey Rankins 2024-03-28 17:44:24 0 24Кб
Business
Is Fabric Secure?
When organizations consider adopting a new analytics platform, one of the first questions they...
От Dacey Rankins 2025-09-02 15:32:48 0 6Кб
Mental Health
Dyslexia: Dual route theory
The dual-route theory of reading aloud was first described in the early 1970s. This theory...
От Kelsey Rodriguez 2023-06-27 18:45:02 0 12Кб
Living History
Living History Recreation: Bringing the Past to Life Through Timeless Experience
Living History Recreation: Bringing the Past to Life Through Timeless Experience In the vast...
От Leonard Pokrovski 2024-05-14 23:29:07 0 21Кб

BigMoney.VIP Powered by Hosting Pokrov