How to subtract one array from another, element-wise, in javascript

前端 未结 0 830
春和景丽
春和景丽 2021-02-12 05:57

If i have an array A = [1, 4, 3, 2] and B = [0, 2, 1, 2] I want to return a new array (A - B) with values [1, 2, 2, 0]. What is the most e

相关标签:
回答
  • 消灭零回复
提交回复
热议问题