JavaScript has()

0
9Кб

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.

Поиск
Категории
Больше
История
Список Шиндлера. Schindler's List. (1993)
Сценарий «Списка Шиндлера» долго кочевал от одного режиссера к другому, пока не...
От Nikolai Pokryshkin 2022-10-31 20:54:26 0 31Кб
Социальные проблемы
«V» значит Вендетта. V for Vendetta. (2005)
Альтернативное будущее. В Англии после страшной эпидемии неизвестного вируса повергшей страну в...
От Nikolai Pokryshkin 2023-03-02 11:12:13 0 43Кб
Philosophy
What is Philosophy?
What is called philosophy is sometimes considered an occupation that everyone can do, and...
От FWhoop Xelqua 2022-11-10 11:55:27 0 21Кб
Business
General Director: Job Responsibilities
General Director: Job Responsibilities Is the job description of the general director a...
От Leonard Pokrovski 2024-08-13 22:42:08 0 16Кб
Social Issues
Tenet(2020)
Armed with only one word, Tenet, and fighting for the survival of the entire world, a Protagonist...
От Leonard Pokrovski 2022-10-16 13:51:00 0 22Кб

BigMoney.VIP Powered by Hosting Pokrov



Top sites Pokrov