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.

Suche
Kategorien
Mehr lesen
Природа и наука
Мой сосед Тоторо. My Neighbor Totoro. (1988)
Сестры Сацуки и Мэй переезжают вместе с папой в деревенский дом. Однажды девочки обнаруживают,...
Von Nikolai Pokryshkin 2023-03-14 12:56:10 0 34KB
Personal Finance
What Happens If You Owe Taxes — And Can You Set Up a Payment Plan?
What Happens If You Owe Taxes — And Can You Set Up a Payment Plan? Finding out you owe...
Von Leonard Pokrovski 2025-11-21 19:51:01 0 3KB
Business
What Are the Costs Associated with Fundraising?
Fundraising is a critical activity for nonprofits, businesses, and individuals seeking to support...
Von Dacey Rankins 2025-03-26 16:31:59 0 11KB
Социальные проблемы
Новые времена. Modern Times. (1936)
«Новые времена» - это эмоциональный, выдержанный в комическом ключе, отклик на...
Von Nikolai Pokryshkin 2022-12-06 22:41:12 0 28KB
Financial Services
The tradeoff between economic output and environmental protection
Key points Depending on their income levels and political preferences, different...
Von Mark Lorenzo 2023-07-28 20:15:43 0 237KB

BigMoney.VIP Powered by Hosting Pokrov