V
V
Vladislav Khvostov2016-05-22 11:05:30
JavaScript
Vladislav Khvostov, 2016-05-22 11:05:30

What is the difference between map and set in ES-2015?

They seem to work the same way, they only write one value...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lega, 2016-05-22
@vlakhvo

map contains a key-value, set is just a key

A
Artyom Egorov, 2016-05-22
@egoroof

https://learn.javascript.ru/set-map

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question