JavaScript has()

0
5K

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.

Search
Categories
Read More
Business
How to Effectively Measure Customer Satisfaction: A Guide to CSAT
Customer satisfaction is one of the key metrics of customer service, and it's an axiom. It allows...
By Dacey Rankins 2024-09-19 16:59:32 0 10K
Business
What is business forecasting?
Business forecasting is the practice of using tools and techniques to predict future developments...
By Dacey Rankins 2025-01-09 15:38:09 0 2K
Badminton
Badminton
Badminton is not just a backyard game but a sport that combines agility, strategy, and skill into...
By Leonard Pokrovski 2024-06-15 22:50:49 0 20K
Искусство, культура и развлечения
Мое сердце разрывается. My Heart Goes Boom!. (2020)
Мюзикл, основанный на хитах популярной итальянской певицы Рафаэллы Карра. Мария с детства мечтала...
By Nikolai Pokryshkin 2022-09-27 17:23:39 0 20K
Научная фантастика и фэнтези
Властелин колец: Братство Кольца. The Lord of the Rings: The Fellowship of the Ring. (2001)
Сказания о Средиземье — это хроника Великой войны за Кольцо, длившейся не одну тысячу лет....
By Nikolai Pokryshkin 2022-11-04 20:07:28 0 27K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov