JavaScript has()

0
6KB

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.

Search
Nach Verein filtern
Read More
Agriculture and Forestry
AGRICULTURE AND FORESTRY – MAJOR CHALLENGES RELATED TO CLIMATE PROTECTION AND CHANGE
There is a strong relationship between climate protection, climate adaptation, food security and...
Von FWhoop Xelqua 2023-07-17 17:49:10 0 19KB
Automotive
The Automotive Industry: Trends, Innovations, and the Road Ahead
The automotive industry has long been a pillar of the global economy, driving not only...
Von Dacey Rankins 2024-11-12 14:28:05 0 4KB
Roleplaying
An Introduction to Roleplaying Games: The Art of Imagination and Adventure
Roleplaying games (RPGs) have captivated generations of players with their immersive worlds,...
Von Dacey Rankins 2024-12-05 14:38:28 0 5KB
Социальные проблемы
Однажды в Америке. Once Upon a Time in America. (1984)
В бурные двадцатые годы, когда Америка веселилась под звуки джаза, и каждый бродяга мечтал стать...
Von Nikolai Pokryshkin 2023-01-04 15:21:05 0 16KB
E-Books
E-book (device)
E-book (device) Electric book (reader, coll. "e-reader"; An e-book...
Von Leonard Pokrovski 2024-03-21 20:31:42 0 17KB
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov