JavaScript has()

0
11Кб

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.

Поиск
Категории
Больше
Business
A User Story is Just a Placeholder for a Conversation
In Agile development, user stories are often misunderstood. Many people treat them as...
От Dacey Rankins 2025-08-26 12:26:36 0 7Кб
Искусство, культура и развлечения
Шерлок младший. Sherlock Jr. (1924)
Б.Китон - киномеханик, который мечтает быть знаменитым детективом, как Шерлок Холмс. Влюбленный в...
От Nikolai Pokryshkin 2023-04-02 21:01:16 0 41Кб
Социальные проблемы
Гениальное ограбление. The Vault. (2021)
В ограблении главное правильно подобрать момент. Юный гений Том Джонсон решил проникнуть в сейф...
От Nikolai Pokryshkin 2022-09-13 20:32:31 0 29Кб
Mental Health
Psychosis: Alcohol
Approximately three percent of people with alcoholism experience psychosis during acute...
От Kelsey Rodriguez 2023-05-30 18:49:34 0 11Кб
Истории
Gone with the Wind. (1939)
American motion picture classic in which a manipulative woman and a roguish man conduct a...
От Leonard Pokrovski 2023-03-04 16:13:44 0 25Кб

BigMoney.VIP Powered by Hosting Pokrov