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
Social Issues
North by Northwest. (1959)
A New York City advertising executive goes on the run after being mistaken for a government agent...
Por Leonard Pokrovski 2023-01-17 19:04:53 0 23KB
Mental Health
Autism Spectrum: Social and Communication skills
In social contexts, autistic people may respond and behave differently than individuals without...
Por Kelsey Rodriguez 2023-02-15 17:58:48 0 13KB
News and Media
The Role of News and Media in Society: Informing, Shaping, and Challenging the Public
The news and media landscape has undergone dramatic changes in the past few decades, reshaping...
Por Dacey Rankins 2024-11-13 15:41:21 0 10KB
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
Природа и наука
Том и Джерри. Tom & Jerry. (2021)
Кайла, сотрудница престижного отеля, где обитает мышонок Джерри, рискующий нарушить ход дорогой...
Por Nikolai Pokryshkin 2022-09-17 20:24:11 0 28KB

BigMoney.VIP Powered by Hosting Pokrov