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.

البحث
الأقسام
إقرأ المزيد
Business
How Do I Align Business Strategy with Organizational Goals?
One of the most important tasks for any organization is ensuring that its business strategy is...
بواسطة Dacey Rankins 2024-12-24 13:13:30 0 33كيلو بايت
Ethnic and Regional
The most unusual sweets of the world
Almost all people tend to treat themselves to sweets. Residents of African countries, Japanese...
بواسطة FWhoop Xelqua 2022-11-21 13:16:29 0 25كيلو بايت
Investing
What is investment?
There are many myths surrounding investments. Some say that this is too complex a tool for a...
بواسطة Michael Pokrovski 2024-03-15 22:57:23 0 30كيلو بايت
Business
B2B Marketing
B2B Marketing   In B2B (business to business), one company sells a product or...
بواسطة Leonard Pokrovski 2024-08-30 20:22:18 0 37كيلو بايت
Human Resources
What is the Future of Human Resources?
Human Resources (HR) has undergone significant transformation over the past few decades. Once...
بواسطة Dacey Rankins 2026-03-24 15:41:43 0 2كيلو بايت

BigMoney.VIP Powered by Hosting Pokrov