There is an array (object) that contains positive and negative keys. But trying to sort it out, apparently, he does not perceive negative keys (the search goes from 0) and gives an error. What can be done in this case?
mr = { "0": { title: "qwe" }, "-1": { title: "qwe2" }, "-2": { title: "qwe3" } }; Object.keys(mr) .map(function(file, index) { console.log(mr[index]["title"]); });
indexwithfile- Rostyslav Kuzmovych