JavaScript Maps | JavaScript Tutorial
Map:- Map is a collection of keyed data items, just like an Object.
Methods and properties are:
new Map() – creates the map.
map.set(key, value) – stores the value by the key.
map.get(key) – returns the value by the key, undefined if key doesn’t exist in map.
map.has(key) – returns true if the key exists, false otherwise.
map.delete(key) – removes the value by the key.
map.clear() – removes everything from the map.
map.size – returns the current element count.
Видео JavaScript Maps | JavaScript Tutorial автора JavaScript и микросервисная архитектура
Видео JavaScript Maps | JavaScript Tutorial автора JavaScript и микросервисная архитектура
Информация
29 ноября 2023 г. 1:57:30
00:06:51
Похожие видео