Is there a null-conditional operator for array concatenation?

后端 未结 0 1215
挽巷
挽巷 2021-01-07 06:10
const addendum = null
const acts.change = [act1];
console.log( acts.change.concat(addendum?.changedActions) );
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题