JavaScript has()

0
9K

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
Искусство, культура и развлечения
Крещендо. Crescendo. (2020)
Знаменитый немецкий дирижер Эдвард Спор принимает приглашение устроительницы гуманитарного...
By Nikolai Pokryshkin 2022-09-29 23:03:03 0 31K
Природа и наука
Спирит Непокорный. Spirit Untamed. (2021)
Лаки Прескотт — юная бунтарка, совсем как ее мама, легендарная бесстрашная наездница,...
By Nikolai Pokryshkin 2022-09-17 10:56:53 0 29K
Employment
Science Employment: Careers Shaping the Future
The field of science is broad, diverse, and integral to the advancement of society. Science...
By Dacey Rankins 2024-12-11 15:04:16 0 8K
Money
Services aimed at attracting financial abundance or improving financial well-being from Archpatron Nikolai
1. Money Spells Abundance Spells: Rituals aimed at manifesting wealth and prosperity....
By Nikolai Pokrovski 2024-12-19 20:42:41 0 21K
News
The Essence of News: Navigating the Currents of Information
The Essence of News: Navigating the Currents of Information In a world inundated with a...
By Leonard Pokrovski 2024-05-02 17:29:40 0 16K

BigMoney.VIP Powered by Hosting Pokrov