let obj = {
"color-1": "1",
"color-2": "2",
"color-3": "3",
"geyao-1": "1",
"geyao-2": "2",
"geyao-3": "3"
}
console.log(Object.entries(obj),"Object")
[
[
"color-1",
"1"
],
[
"color-2",
"2"
],
[
"color-3",
"3"
],
[
"geyao-1",
"1"
],
[
"geyao-2",
"2"
],
[
"geyao-3",
"3"
]
]