I need an explaination about the process of a compareFunction (like Array.sort(compareFunction) for exemple )

后端 未结 0 494
慢半拍i
慢半拍i 2021-01-20 01:26

On a function like this one:

Array.sort((a,b) => a - b)

If my array has many items, how does the \'a\' and \'b\' applies the condition to

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