📜  javascript代码示例中的“-1”是什么意思

📅  最后修改于: 2022-03-11 15:03:52.160000             🧑  作者: Mango

代码示例1
1) Search/Find functions return a -1 if there is no matching item.
2) -1 is used to mean descending for sort functions.