I am trying to use map to cast this string to an array of objects. instead I get a result of undefined for each element. What am I missing here?
const sample = '003020600900305001001806400008102900700000008006708200002609500800203009005010300'
function solve(puzzle) {
puzzle = puzzle.split('').map(x=>{value:x})
console.log(puzzle)
}
solve(sample)