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.

Поиск
Категории
Больше
Astronomy
Exploring the Universe: An Introduction to Astronomy
Astronomy, the study of celestial bodies such as stars, planets, comets, and galaxies, as well as...
От Dacey Rankins 2024-12-11 14:57:14 0 11Кб
Business
Why do we need psychology in a commercial offer
Why do we need psychology in a commercial offer? Psychology in a commercial offer helps to...
От Leonard Pokrovski 2024-08-22 16:15:11 0 19Кб
Economics
Has Brexit benefited the UK?
Has Brexit benefited the UK? When the United Kingdom voted to leave the European Union in 2016,...
От Leonard Pokrovski 2026-02-05 23:57:09 0 2Кб
Transportation and Logistics
Transport logistics
  Transport logistics is one of the most important elements in the organization...
От FWhoop Xelqua 2022-10-13 15:26:42 0 25Кб
Television
Music Channel. Live TV. USA
Jesus Live Network, channel 10. My Link
От Nikolai Pokryshkin 2022-10-08 10:50:04 0 34Кб

BigMoney.VIP Powered by Hosting Pokrov