Can I destructure an array in a Javascript arrow function?

后端 未结 0 770
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 07:00

Does any version of Javascript support destructuring of arrays in arrow functions? E.g.

const items = [ [1, 2], [3, 4] ];
const sums = items.map( [a, b] =>         


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