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
Television
TCTKids Live Stream.
TCTKids offers viewers a family-friendly lineup with programs specifically geared to children....
Por Nikolai Pokryshkin 2022-11-22 13:24:24 0 37KB
Companies
Computer Companies: Key Players in a Digital World
The computer industry has evolved dramatically since its inception, driven by innovation and...
Por Dacey Rankins 2024-10-16 15:49:54 0 20KB
Horror
The Black Demon. (2023)
Stranded on a crumbling rig in Baja, a family faces off against a vengeful megalodon shark. My...
Por Leonard Pokrovski 2023-06-12 20:15:46 0 36KB
Money
What is APR on a Credit Card?
What is APR on a Credit Card? When you’re comparing credit cards, one of the most...
Por Leonard Pokrovski 2025-09-20 15:30:19 0 2KB
Social Issues
Unhinged (2020)
Academy Award winner Russell Crowe stars in Unhinged, a psychological thriller that takes...
Por Leonard Pokrovski 2022-10-19 17:09:27 0 25KB

BigMoney.VIP Powered by Hosting Pokrov