How to convert a js object into an one-dimensional package object

convert the object to an one-dimensional array, which contains the object. The data obtained by traversing through for in is not in the right format, so it is very weak in data processing

.
let str = { 
            activationSuccessNumber: 2, 
            helpSuccessNumber: 0, pv: 212, 
            shareNumber: 1, 
            uv: 1 
        }
let arr = []
for (var i in str) {
    arr.push(str[i])
}
console.log(arr);

clipboard.png

clipboard.png

Oct.24,2021

let str = { 
            activationSuccessNumber: 2, 
            helpSuccessNumber: 0, pv: 212, 
            shareNumber: 1, 
            uv: 1 
        }
let arr = []
arr.push(str)
console.log(arr);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bc12-2c2c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bc12-2c2c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?