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
Pharmacy
Common Pharmacy Prescriptions: A Guide to Commonly Prescribed Medications
Pharmacy prescriptions are a critical part of healthcare, helping to manage various medical...
Por Dacey Rankins 2024-12-10 14:20:04 0 11KB
Business
How Do I Start a Fundraising Campaign?
Starting a fundraising campaign can seem like a daunting task, but with the right strategy and...
Por Dacey Rankins 2025-03-26 16:19:00 0 12KB
Социальные проблемы
Зелёная миля. The Green Mile. (1999)
Пол Эджкомб — начальник блока смертников в тюрьме «Холодная гора», каждый из...
Por Nikolai Pokryshkin 2022-11-20 23:28:07 0 31KB
Darts
The Art of Darts: Precision, Strategy, and Skill
Darts, a game steeped in tradition yet evolving with the times, continues to captivate...
Por Dacey Rankins 2024-06-20 18:56:44 0 19KB
Другое
Плата за страх. The Wages of Fear. (1953)
Четверо храбрецов, застрявших без денег в крошечном городишке где-то в сердце Латинской Америки,...
Por Nikolai Pokryshkin 2023-04-02 19:12:33 0 42KB

BigMoney.VIP Powered by Hosting Pokrov