JavaScript has()

0
11KB

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.

Pesquisar
Categorias
Leia mais
Social Issues
The Forever Purge (2021)
All the rules are broken as a sect of lawless marauders decides that the annual Purge does not...
Por Leonard Pokrovski 2022-09-11 19:54:57 0 33KB
Television
CGTN news (English) Live TV from China.
CGTN news, China Central Television (former CCTV 9) is a 24/7 news TV channel in the English...
Por Nikolai Pokryshkin 2022-08-29 20:56:10 0 35KB
Marketing and Advertising
How Do You Maintain Engagement in a Community?
Building a community is only the first step. The real challenge lies in sustaining engagement...
Por Dacey Rankins 2025-09-26 15:09:41 0 7KB
Financial Services
Keynes’ Law and Say’s Law in the AD/AS model
Key points The short-run aggregate supply, or SRAS, curve can be divided into...
Por Mark Lorenzo 2023-06-16 20:28:05 0 13KB
Жизненные вопросы
Перед рассветом. Before Sunrise. (1995)
Молодой американец Джесси знакомится в поезде с красивой француженкой Селин. Они сразу находят...
Por Nikolai Pokryshkin 2023-03-19 14:14:00 0 32KB

BigMoney.VIP Powered by Hosting Pokrov