`map` doesn't modify the array in-place, you need to assign the result to a variable and use that instead.