The array to search in 要搜索的数组
A function to test each element. Return true to indicate a matching element has been found. 用于测试每个元素的函数。返回 true 表示已找到匹配元素。
A function to execute on the found element. 找到匹配元素后要执行的函数。
The index at which to start the search. Defaults to 0. 开始搜索的索引。默认值为 0。
Whether any element satisfies the testing function. 是否有任何元素满足测试函数。
Find the first element in the array that satisfies the provided testing function and execute the given callback function.
查找数组中第一个满足提供的测试函数的元素,并执行给定的回调函数。