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.

Поиск
Категории
Больше
Business
How Can Business Growth Be Measured?
Business growth is a key indicator of a company’s health, market position, and long-term...
От Dacey Rankins 2025-09-04 13:23:59 0 6Кб
Clothing
10 Tips for Successfully Buying Clothes Online
More than 50% of purchases are now made online. This is beneficial for everyone: shop owners may...
От FWhoop Xelqua 2022-09-22 13:56:43 0 46Кб
Ask an Expert
10 mistakes that will kill your expert video
Many experts make these mistakes and lose their audience. But they are easy to avoid - I have put...
От FWhoop Xelqua 2022-10-02 12:01:16 0 44Кб
Медиа
The Call (2020)
In the fall of 1987, a group of small-town friends must survive the night in the home of a...
От Leonard Pokrovski 2022-09-08 18:40:18 1 33Кб
История
Унесённые ветром. Gone with the Wind. (1939)
Могучие ветры Гражданской войны в один миг уносят беззаботную юность южанки Скарлетт О`Хара,...
От Nikolai Pokryshkin 2023-03-03 15:06:58 0 21Кб

BigMoney.VIP Powered by Hosting Pokrov