Practicing algorithm this afternoon, I noticed this problem, which I have never mentioned before. I posted it today. Somebody join me.

let isArr = [1, 23, 5, 6, 3, 7, 22, 4];


function testA(arr) {
    let obj = {};
    arr.map(t => obj[t]=t);
    return obj;
}
console.log(Object.keys(testA(isArr)).map(Number));