JavaScript has()

0
4K

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.

Căutare
Categorii
Citeste mai mult
Weight Loss
Weight Loss
Weight Loss Unintentional (or unexplained) weight loss is a noticeable loss of body weight...
By Leonard Pokrovski 2024-04-23 08:40:13 0 6K
Business
Storytelling
Storytelling is a marketing technique that helps to convey information through a story or story....
By Dacey Rankins 2024-09-09 19:22:32 0 5K
Nature and Science
Dream Horse (2021)
Dream Alliance is an unlikely race horse bred by small-town Welsh bartender Jan Vokes. With no...
By Leonard Pokrovski 2022-09-07 13:52:42 0 21K
Hand-Eye Coordination
Modern children sit a lot:
Modern children sit a lot: in high chairs, car seats, strollers, at cartoons, tablets, lessons....
By Leonard Pokrovski 2024-04-04 21:08:04 0 6K
Социальные проблемы
Плохие сказки. Bad Tales. (2020)
Деннис и Алессия по просьбе отца показывают свои дневники с отличными оценками многочисленным...
By Nikolai Pokryshkin 2022-10-19 16:49:19 0 15K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov