I want to change array with map() but it doesn't work.
Here is my code.
const colors = ["#9abc9c", "#9ecc71", "#9498db", "#9b59b6", "#967e22", "#974c3c", "#91c40f"];
colors.map(color => color[1]="1");
Input what i want is change every first number after "#" into 1.
colors = ["#1abc9c", "#1ecc71", "#1498db", "#1b59b6", "#167e22", "#174c3c", "#11c40f"];
I'd be so appreciate it if you let me solve this problem.