JavaScript has()

0
10KB

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
Социальные проблемы
Зелёная книга. Green Book. (2018)
1960-е годы. После закрытия нью-йоркского ночного клуба на ремонт вышибала Тони по прозвищу...
Por Nikolai Pokryshkin 2023-02-07 13:15:09 0 26KB
Business
What daily habits do successful founders have?
Success in the startup world rarely happens by accident. Behind every thriving founder is a set...
Por Dacey Rankins 2025-04-14 13:37:20 0 9KB
Social Issues
The Intern. (2015)
Seventy-year-old widower Ben Whittaker has discovered that retirement isn't all it's cracked up...
Por Leonard Pokrovski 2023-05-25 18:58:50 0 24KB
Programming
Python Booleans
Booleans are expressions that evaluates if it's true or false. For example, if you compare 2...
Por Jesse Thomas 2023-02-24 21:41:56 0 11KB
Ethnic and Regional
The most unusual sweets of the world
Almost all people tend to treat themselves to sweets. Residents of African countries, Japanese...
Por FWhoop Xelqua 2022-11-21 13:16:29 0 23KB

BigMoney.VIP Powered by Hosting Pokrov