对象转数组形式(从对象创建`键-值`对数组)
const keyValuePairsToArray = object => Object.keys(object) .map(el => [el, object[el]]) // 事例 keyValuePairsToArray({Better: 4, Programming: 2}) // [['Better', 4], ['Programming', 2]] keyValuePairsToArray({x:1, y:2, z:3}) // [['x', 1], ['y', 2], ['z', 3]]