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.

Search
Categories
Read More
Social Issues
Green Book. (2018)
A working-class Italian-American bouncer becomes the driver for an African-American classical...
By Leonard Pokrovski 2023-02-08 12:06:53 0 13K
History
For a Few Dollars More. (1965)
Two bounty hunters with the same intentions team up to track down an escaped Mexican outlaw....
By Leonard Pokrovski 2023-02-02 14:34:20 0 17K
Mental Health
Psychosis: Cannabis
According to current studies, cannabis use is associated with increased risk of psychotic...
By Kelsey Rodriguez 2023-05-31 18:03:47 0 6K
Writers Resources
Top 9 Useful Writing sites
Your creative process as a science fiction writer may be different from that of your peers, but...
By FWhoop Xelqua 2023-07-14 18:00:30 0 17K
Biology
Why Study Biology
  Why Study Biology Biology refers to the natural sciences that study wildlife. The...
By FWhoop Xelqua 2023-03-28 14:46:47 0 13K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov