Загрузка...

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 и микросервисная архитектура
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки