JavaScript has()

0
11Кб

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.

Поиск
Категории
Больше
Social Issues
Before the Flood (2016)
A look at how climate change affects our environment and what society can do to prevent the...
От Leonard Pokrovski 2023-07-13 20:22:51 0 32Кб
Table Tennis
Table Tennis: The Art, Science, and Thrill of Ping Pong
Table Tennis: The Art, Science, and Thrill of Ping Pong Table tennis, also known as ping pong,...
От Leonard Pokrovski 2024-07-10 08:30:47 0 22Кб
Social Issues
The Usual Suspects. (1995),
A sole survivor tells of the twisty events leading up to a horrific gun battle on a boat, which...
От Leonard Pokrovski 2022-12-02 20:31:54 0 23Кб
Business
How Does Remote Work Impact Productivity?
The rise of remote work has transformed the workplace in recent years, prompting both employees...
От Dacey Rankins 2025-01-29 17:04:09 0 12Кб
Financial Services
How changes in the cost of living are measured
Key points The Consumer Price Index, or CPI is a measure of...
От Mark Lorenzo 2023-06-09 20:21:34 0 13Кб

BigMoney.VIP Powered by Hosting Pokrov