Javascript – Can't I insert an element at the start of array with a chained method without using map?
I have a chain of methods that treat an array. Then I was trying to do a simple thing: add an element at the start of the array in a method chain. Initially I tried: console.log( [1, 2, 3] .map(a=>a+1)…