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: /** * Convert an object to an array * @param {object} obj The object to…