@custouch/jssdk
Preparing search index...
utils/common
loop
Function loop
loop
<
T
extends
any
[]
>
(
data
:
T
,
callback
:
(
item
:
T
[
number
]
,
arr
:
T
,
pItem
?:
T
[
number
]
)
=>
boolean
|
void
,
key
?:
string
,
)
:
undefined
|
T
[
number
]
递归遍历
Type Parameters
T
extends
any
[]
Parameters
data
:
T
callback
:
(
item
:
T
[
number
]
,
arr
:
T
,
pItem
?:
T
[
number
]
)
=>
boolean
|
void
Optional
key
:
string
= 'children'
Returns
undefined
|
T
[
number
]
{(T[number] | undefined)}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@custouch/jssdk
Loading...
递归遍历