Why clone function is working when it doesn't exist?

前端 未结 0 1864
半阙折子戏
半阙折子戏 2020-12-01 02:36

I found this snippet and it deep copies javascript array.

const makeCopy = (items) = items.map(item => Array.isArray(item) ? clone(item) : item);


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