JavaScript has()

0
11كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
Business
How to Create a Viral Newsbreak: Techniques and Examples
Viral newsbreaks help to achieve different KPIs: increase awareness, engagement, and audience...
بواسطة Dacey Rankins 2024-09-11 12:01:20 0 11كيلو بايت
Programming
Tailwind CSS Vs Bootstrap
CSS (Cascading Style Sheets) is a stylesheet language used to style the HTML elements in a...
بواسطة Jesse Thomas 2023-06-14 19:56:18 0 12كيلو بايت
Soccer
Soccer: The Beautiful Game Unites the World
Soccer: The Beautiful Game Unites the World Soccer, known as football in most parts of the...
بواسطة Leonard Pokrovski 2024-07-10 09:38:54 0 22كيلو بايت
Business
Can a Startup Biography Evolve Over Time?
A startup biography isn’t a one-and-done document. Just like the company it represents, a...
بواسطة Dacey Rankins 2025-04-19 14:49:54 0 13كيلو بايت
Ужасы
Кислород. Oxygen. (2021)
Женщина приходит в себя в криогенной камере и понимает, что не может вспомнить ни кто она такая,...
بواسطة Nikolai Pokryshkin 2022-09-20 22:58:36 0 32كيلو بايت

BigMoney.VIP Powered by Hosting Pokrov