Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 426 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
debugger;
let myMap = new Map();
myMap.set('foo', 'bar');
myMap.set('bar', 'Barbar');
myMap.set('foobar', 'BarbarFooFoo');
console.log(myMap);
console.log(myMap.keys());
console.log(Array.from( myMap.keys() ));
console.log([...myMap.keys()]);
</script>
</body>
</html>
You can’t perform that action at this time.