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
Science Fiction and Fantasy
Earwig and the Witch. (2021)
An orphan girl, Earwig, is adopted by a witch and comes home to a spooky house filled with...
By Leonard Pokrovski 2022-09-25 17:36:03 0 54K
Marketing and Advertising
What Is Positioning? (Understanding Brand and Product Positioning)
Introduction: The Art and Science of Perception In marketing, positioning is one of the most...
By Dacey Rankins 2025-10-23 15:26:19 0 2K
Science Fiction and Fantasy
Avengers: Endgame. (2019)
After the devastating events of Avengers: Infinity War (2018), the universe is in ruins. With the...
By Leonard Pokrovski 2023-01-03 21:03:41 0 29K
Business and Society
Business in Our Current Society: Navigating the Modern Landscape
In today’s fast-paced and interconnected world, business is more dynamic and complex than...
By Dacey Rankins 2025-01-23 15:03:20 0 19K
Programming
Express.JS
What Is Express JS?      Express is a node js web application framework...
By Jesse Thomas 2023-05-24 21:10:49 0 11K

BigMoney.VIP Powered by Hosting Pokrov