1

I have an object that looks like this:

var foo = {
    284366: 3, 
    285286: 1, 
    285614: 2
} 

How can I turn it into:

var foo = {
    285286: 1, 
    285614: 2,
    284366: 3
} 
gen_Eric
  • 223,194
  • 41
  • 299
  • 337

0 Answers0