JavaScript has()

0
12Кб

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.

Поиск
Категории
Больше
Officiating
Sports Referring
Sports refereeing, direct management of sports competitions according to the established...
От FWhoop Xelqua 2022-12-23 15:53:19 0 24Кб
Жизненные вопросы
Она говорит со мной. We Still Talk. (2021)
Вот уже 65 лет Нино влюблен в Рину и продолжает любить, хотя ее уже нет рядом. Он все еще...
От Nikolai Pokryshkin 2022-09-16 21:59:50 0 28Кб
Hardware
The Evolution of Hardware: The Backbone of Modern Technology
In the world of technology, hardware refers to the physical components of a computer or...
От Dacey Rankins 2024-11-05 15:49:11 0 12Кб
Investing
The Pros and Cons of Investing: Weighing Your Options
Investing is a powerful tool for building wealth and achieving financial goals. However, it comes...
От Dacey Rankins 2024-10-09 17:31:39 0 20Кб
Social Issues
City Lights. (1931)
With the aid of a wealthy erratic tippler, a dewy-eyed tramp who has fallen in love with a...
От Leonard Pokrovski 2022-12-11 19:38:39 0 30Кб

BigMoney.VIP Powered by Hosting Pokrov