JavaScript has()

0
6K

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
Categories
Read More
Научная фантастика и фэнтези
Индиана Джонс: В поисках утраченного ковчега. Indiana Jones and the Raiders of the Lost Ark. (1981)
Известный археолог и специалист по оккультным наукам доктор Джонс получает опасное задание от...
By Nikolai Pokryshkin 2022-12-13 18:09:48 0 19K
Regional
What did Covid-19 do to kids' mental health?
n recent years, the mental health of young people in the United States has been steadily...
By FWhoop Xelqua 2023-03-19 17:17:01 0 15K
Aging
Can Man Challenge His Genes?
Theoretically, living organisms can live for a very long time, almost forever. Where did such an...
By Dacey Rankins 2024-04-10 13:09:34 0 9K
Business
How Do I Protect My Intellectual Property?
Protecting your intellectual property (IP) is one of the most important steps in securing the...
By Dacey Rankins 2025-03-03 14:53:24 0 3K
Business
What Are the Benefits and Risks of Entrepreneurship?
Entrepreneurship is an exciting journey that offers financial independence, creativity, and the...
By Dacey Rankins 2025-03-12 14:41:16 0 3K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov