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.

البحث
الأقسام
إقرأ المزيد
Personal Finance
Should I Work Longer or Delay Retirement to Save More?
Should I Work Longer or Delay Retirement to Save More? Deciding when to retire is one of the...
بواسطة Leonard Pokrovski 2025-11-26 20:07:02 0 6كيلو بايت
Data Formats
File format
A file format is a specification of the structure of data recorded in a computer file. The file...
بواسطة Dacey Rankins 2024-03-21 15:37:18 0 35كيلو بايت
Marketing and Advertising
How Much Does a Digital Billboard Cost Compared to a Static Billboard?
One of the most common questions businesses ask when considering billboard advertising is: How...
بواسطة Dacey Rankins 2026-01-15 17:13:45 0 6كيلو بايت
Chemistry
10 interesting facts about chemistry
For many, weekdays are almost monotonous: home, work, home ... And often this drives people into...
بواسطة FWhoop Xelqua 2022-11-24 13:54:18 0 31كيلو بايت
Жизненные вопросы
Звёздочки на земле. Like Stars on Earth. (2007)
Маленький мальчик 8 лет Ишан Авасти с рождения немного отличается от других детей. Ему дается с...
بواسطة Nikolai Pokryshkin 2023-02-01 22:21:15 0 36كيلو بايت

BigMoney.VIP Powered by Hosting Pokrov