How to subtract one array of numbers from another?
var array = [5,3,7] var array2 = [1,2,4]
You need to get in result: `[4,1,3]`
var result = array.map ((v, i) = & gt; v - array2 [i]);Anonymous
To place the code, please use CodePen or similar tool. Thanks you!