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
Mental Health
Dyslexia: Pathophysiology
For most people who are right-hand dominant, the left hemisphere of their brain is more...
Por Kelsey Rodriguez 2023-06-26 17:18:55 0 11KB
Horror
Vertigo. (1958)
A former San Francisco police detective juggles wrestling with his personal demons and becoming...
Por Leonard Pokrovski 2023-01-18 20:17:00 0 24KB
Социальные проблемы
Пила: Спираль. Spiral: From the Book of Saw. (2021)
Импульсивный детектив полиции Нью-Йорка Зик Бэнкс всю жизнь пытается вырваться из тени отца,...
Por Nikolai Pokryshkin 2022-09-12 21:35:35 1 30KB
Cultures and Groups
Art in Culture: A Timeless Reflection of Society
Art has long been an essential element of human civilization, playing a profound role in shaping...
Por Dacey Rankins 2025-01-22 14:28:16 0 14KB
Hardware
The Evolution of Hardware: The Backbone of Modern Technology
In the world of technology, hardware refers to the physical components of a computer or...
Por Dacey Rankins 2024-11-05 15:49:11 0 11KB

BigMoney.VIP Powered by Hosting Pokrov