JavaScript has()

0
8KB

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.

Rechercher
Catégories
Lire la suite
Finance
How to budget properly
Saving money can be a straightforward process if you approach it with some planning and...
Par Dacey Rankins 2024-10-04 15:54:02 0 9KB
Природа и наука
Король Лев. The Lion King. (1994)
У величественного Короля-Льва Муфасы рождается наследник по имени Симба. Уже в детстве...
Par Nikolai Pokryshkin 2022-11-27 22:00:17 0 31KB
Investing
The Pros and Cons of Investing: Weighing Your Options
Investing is a powerful tool for building wealth and achieving financial goals. However, it comes...
Par Dacey Rankins 2024-10-09 17:31:39 0 15KB
Supercomputing
Supercomputing: Unleashing the Power of Advanced Computing
Supercomputing represents the pinnacle of computational capability, enabling researchers and...
Par Dacey Rankins 2024-10-21 16:45:44 0 10KB
Social Issues
The Green Mile. (1999)
The lives of guards on Death Row are affected by one of their charges: a black man accused of...
Par Leonard Pokrovski 2022-11-21 20:14:20 0 19KB

BigMoney.VIP Powered by Hosting Pokrov