JavaScript has()
Postado 2023-05-16 11:21:29
0
9KB
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
Пролетая над гнездом кукушки. One flew over the cuckoo's nest. (1975)
Рэндла Патрика Макмёрфи, патологического преступника и бунтаря, переводят из колонии в...
Capital
Capital (from the Latin capitalis "main, basic", from the root caput - "head, unit, thing", in...
How Do I Determine My Startup Costs and Other Expenses?
Starting a new business can be an exciting yet overwhelming experience. One of the most crucial...
What Should Be Included in the Meeting Agenda?
How to Create Agendas That Drive Clarity, Focus, and Results
A meeting without a clear agenda is...
How Much Time Does It Take to Work With Analytics Tools?
Analytics tools have become an essential part of modern business decision-making. Whether...