dashboard
repositories
filestore
activity
search
login
刘苏义
/
ruoyi-api
forked from
ard/ruoyi-api
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
更新
aijinhui
2024-02-23
2df696b07d0ffdf7829d4d9cd3da23162dec8799
[~liusuyi/ruoyi-api.git]
/
ruoyi-ui
/
node_modules
/
@riophae
/
vue-treeselect
/
src
/
utils
/
find.js
1
2
3
4
5
6
export function find(arr, predicate, ctx) {
for (let i = 0, len = arr.length; i < len; i++) {
if (predicate.call(ctx, arr[i], i, arr)) return arr[i]
}
return undefined
}