Javascript data conversion

javascript data conversion converts ["1", "1U", "2", "2C", "2U", "2D", "3", "3C", "3U", "3D", "4", "4C", "4U", "4D", "5", "5C", "5U"] into [1pr 2pr 3pr 4L 5] and ["u"], [ ], [[], []

; [[,
Nov.07,2021

var arr = ["1", "1U", "2", "2C", "2U", "2D", "3", "3C", "3U", "3D", "4", "4C", "4U", "4D", "5", "5C", "5U"]
var nums = []
var results = []
var prevResult
for (let str of arr) {
    if (str.length === 1) {
        nums.push(Number(str))
        prevResult = []
        results.push(prevResult)
    } else {
        prevResult.push(str[1])
    }
}
console.log(nums)
console.log(results)
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-1e43f96-437a5.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-1e43f96-437a5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?