JavaScript has()

0
6K

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.

Zoeken
Categorieën
Read More
Mental Health
Autism Spectrum: Disproven vaccine hypothesis
Parents may first become aware of ASD symptoms in their child around the time of a routine...
By Kelsey Rodriguez 2023-02-23 16:05:18 0 6K
Science Fiction and Fantasy
The Lord of the Rings: The Return of the King. (2003)
The final confrontation between the forces of good and evil fighting for control of the future of...
By Leonard Pokrovski 2022-11-05 20:33:04 0 16K
Social Issues
Django Unchained. (2012)
With the help of a German bounty-hunter, a freed slave sets out to rescue his wife from a brutal...
By Leonard Pokrovski 2022-12-14 10:00:40 0 16K
Financial Services
What factors change demand?
Key points Demand curves can shift. Changes in factors like average income and...
By Mark Lorenzo 2023-06-27 18:14:33 0 6K
Social Issues
Athlete A.
Follow the Indianapolis Star reporters that broke the story about USA Gymnastics doctor Larry...
By Leonard Pokrovski 2022-10-23 20:28:16 0 20K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov