JavaScript has()

0
10K

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
Taxi Driver. (1976)
A mentally unstable veteran works as a nighttime taxi driver in New York City, where the...
By Leonard Pokrovski 2023-01-28 17:27:40 0 19K
Business
How Are Potential Profits Used in a Social Enterprise?
Social enterprises are built on the idea that business can be a force for good. Unlike...
By Dacey Rankins 2025-04-15 21:23:38 0 11K
Subcultures
Exploring Society's Subcultures: Unveiling the Tapestry of Diversity
Society is a kaleidoscope of human experiences, where individuals come together, each bringing...
By Dacey Rankins 2024-06-13 16:22:46 0 17K
Business
Digital marketing
Digital marketing is a way to promote goods and services over the Internet. To find new...
By Dacey Rankins 2024-09-03 18:43:08 0 14K
Horror
Psycho. (1960)
A Phoenix secretary embezzles $40,000 from her employer's client, goes on the run and checks into...
By Leonard Pokrovski 2022-11-25 18:20:00 0 24K

BigMoney.VIP Powered by Hosting Pokrov