Zamień iterator w tablicę JS
var arr = Array.from(map.entries());
Rich Rook
var arr = Array.from(map.entries());