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
7 Common Conflict Styles That Show Up in Relationships, According to Experts
Conflict is a natural part of any relationship, whether romantic, familial, or professional....
بواسطة Dacey Rankins 2025-06-10 15:16:12 0 12كيلو بايت
Middle East
Top 10 attractions in the Middle East
But did you know that the Middle East is made up of 14 different...
بواسطة FWhoop Xelqua 2023-03-08 14:45:39 0 20كيلو بايت
Economics
What Is Economic Development?
What Is Economic Development? Economic development is a broad concept that refers to the...
بواسطة Leonard Pokrovski 2026-03-11 02:41:17 0 2كيلو بايت
Science Fiction and Fantasy
Spider-Man: Into the Spider-Verse. (2018)
Teen Miles Morales becomes the Spider-Man of his universe, and must join with five spider-powered...
بواسطة Leonard Pokrovski 2022-12-23 18:59:33 0 22كيلو بايت
Conditions and Diseases
Common Conditions and Diseases Found in Children: A Guide for Parents and Caregivers
Children are at a unique stage of development where their bodies and...
بواسطة Dacey Rankins 2024-12-10 14:07:07 0 12كيلو بايت

BigMoney.VIP Powered by Hosting Pokrov