Pick map with lodash

后端 未结 0 516
梦如初夏
梦如初夏 2020-12-18 17:53

Is there a way to write this kind of pick/map operation

edges = edges.map(([v1, v2]) => [vertices[v1], vertices[v2]]);

more elegant, mayb

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