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.

Cerca
Categorie
Leggi tutto
Искусство, культура и развлечения
Престиж. The Prestige. (2006)
Роберт и Альфред - фокусники-иллюзионисты, которые на рубеже XIX и XX веков соперничали друг с...
By Nikolai Pokryshkin 2022-12-02 18:48:38 0 16K
Programming
Java vs JavaScript
What is Java? Java is a statically typed object-based programming language. Its ability to run...
By Jesse Thomas 2023-06-08 21:18:53 0 6K
Finance
How to budget properly
Saving money can be a straightforward process if you approach it with some planning and...
By Dacey Rankins 2024-10-04 15:54:02 0 6K
Business
What Industries Do Business Consultants Typically Work In?
Business consultants play a crucial role in helping companies solve problems, optimize...
By Dacey Rankins 2025-02-11 15:50:27 0 3K
Social Issues
Crisis. (2021)
Set against the backdrop of the opioid epidemic, stories of an undercover cop, a professor, and a...
By Leonard Pokrovski 2022-09-15 18:57:07 0 21K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov