spread syntax vs slice method

前端 未结 5 2217
终归单人心
终归单人心 2020-12-29 07:23

I was trying to understand what is the difference between spread syntax vs slice method in the following approach.

suppose I want to make an actual copy of an array,

5条回答
  •  误落风尘
    2020-12-29 08:01

    New versions of Chrome (72+) seem to have eliminated the performance gap. https://measurethat.net/Benchmarks/ListResults/2667

提交回复
热议问题