JavaScript has()
Postado 2023-05-16 11:21:29
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
- Arts
- Business
- Computers
- Jogos
- Health
- Início
- Kids and Teens
- Money
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Leia Mais
Тайна в его глазах. The Secret in Their Eyes. (2009)
1974 год. Судебный служащий вместе с двумя напарниками приступает к расследованию громкого дела,...
How to design a Room
Whether you don’t have the budget to hire an interior designer or simply enjoy the idea of...
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...
Мулан. Mulan. (2020)
Изданный императором Китая указ о призыве на службу в армии одного мужчины из каждой семьи для...
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....