JavaScript has()

0
4K

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
История
Тайна в его глазах. The Secret in Their Eyes. (2009)
1974 год. Судебный служащий вместе с двумя напарниками приступает к расследованию громкого дела,...
Por Nikolai Pokryshkin 2023-03-07 13:26:10 0 11K
Home Improvement
How to design a Room
Whether you don’t have the budget to hire an interior designer or simply enjoy the idea of...
Por FWhoop Xelqua 2023-05-01 20:11:48 0 11K
Business
How to Create a Product That Will Be Popular with Users
The problem is that often the opinion of product developers does not coincide with...
Por Dacey Rankins 2024-09-09 18:39:30 0 5K
Социальные проблемы
Мулан. Mulan. (2020)
Изданный императором Китая указ о призыве на службу в армии одного мужчины из каждой семьи для...
Por Nikolai Pokryshkin 2022-10-14 20:15:04 0 17K
Financial Services
Financial Services in the USA: An Overview of a Vital Sector
The financial services industry is one of the most crucial sectors in the United States economy....
Por Dacey Rankins 2024-11-08 17:04:14 0 4K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov

Top sites Pokrov