Json – Object to array bug
So I wrote this function to convert an object to an array. Function: function objectToArray(obj) { const result = []; for (const [key, value] of Object.entries(obj)) { if (typeof value === 'object' && value !== null) { result[key] = objectToArray(value);…