JavaScript has()

0
11K

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.

Căutare
Categorii
Citeste mai mult
Television
Fiji One, Live TV.
Fiji One is based in Suva and is a publicly listed company on the South Pacific Stock Exchange....
By Nikolai Pokryshkin 2022-11-12 14:04:03 0 31K
Jocuri
Games labeled "PS5 Pro Enhanced" will offer a stable 60 FPS, increased resolution, or improved ray tracing
Games labeled "PS5 Pro Enhanced" will offer a stable 60 FPS, increased resolution, or improved...
By Leonard Pokrovski 2024-04-01 20:57:51 0 23K
Business
Strategic Planning in Business — A Complete Guide
Introduction Strategic planning is the foundation of long-term business success. It enables...
By Dacey Rankins 2025-11-14 23:46:56 0 2K
Business
What Are SMART Goals?
Setting goals is easy; achieving them is the challenge. Too often, people set vague objectives...
By Dacey Rankins 2025-09-08 08:02:20 0 4K
Arts, Culture and Entertainment
Some Like It Hot. (1959)
After two male musicians witness a mob hit, they flee the state in an all-female band disguised...
By Leonard Pokrovski 2023-02-05 18:34:09 0 23K

BigMoney.VIP Powered by Hosting Pokrov