I'm using VS Code as text editor for JavaScript, and Node.js for debugging my codes. When I debug the following code I get something called Object, I suppose it refers to something, but why doesn't it display what it refers to, and how can I do it? Is it related to my code?
function arrayToList(array) {
    let list = null;
    for (let i = array.length - 1; i >= 0; i--) {
      list = {value: array[i], rest: list};
    }
    return list;
}
let a = arrayToList([1,3]);
console.log(a);
This is the result (I also added a screen shot of it):
> Object {value: 1, rest: Object}

 
     
    