22 Dec, 2015

Convert a javascript object to an array

The following code will convert an object to an array in Javascript, minding the order of the keys. The keys will be replaced with numbers: