JavaScript has()

0
10كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
Fitness
Fitness: The Path to Health and Beauty
In today's world, where stress and sedentary lifestyles have become the norm, the importance of...
بواسطة Dacey Rankins 2024-04-16 18:59:27 0 13كيلو بايت
Business
What Legacy Did They Leave Behind?
A leader’s true impact is often measured not during their lifetime, but in the legacy they...
بواسطة Dacey Rankins 2025-06-27 16:41:31 0 3كيلو بايت
Жизненные вопросы
Головоломка. Inside Out. (2016)
Райли — обычная 11-летняя школьница, и, как у каждого из нас, ее поведение определяют пять...
بواسطة Nikolai Pokryshkin 2023-03-05 14:55:29 0 30كيلو بايت
Multimedia
Multimedia
Multimedia - data, or content, which is presented simultaneously in different...
بواسطة Michael Pokrovski 2024-03-27 19:19:59 0 27كيلو بايت
Programming
PEP8 Quick Tip
When indenting, use tabs instead of spaces. Yes, PEP8 does tell you that spaces are suggested for...
بواسطة Jesse Thomas 2023-02-09 22:47:21 0 11كيلو بايت

BigMoney.VIP Powered by Hosting Pokrov