function convertObjectToArray(obj) {
    const result = [];
    const keys = Object.keys(obj); // Object.entries requires node 7+
    for (let i = 0, l = keys.length; i < l; i++) {
        result.push(keys[i], obj[keys[i]]);
    }
    return result;
}
Convert an object to an array

@param {object} obj
@return {array}
@example
```js
> convertObjectToArray({ a: '1' })
['a', '1']
```