UNPKG
xe-utils-es
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
JavaScript 函数库、工具类
xe-utils-es
/
types
/
find.d.ts
11 lines
(10 loc)
•
300 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * 从左至右遍历,匹配最近的一条数据 * *
@param
{
object
} obj 对象/数组 *
@param
{
Function
} iterate(item, index, obj) 回调 *
@param
{
object
} context 上下文 *
@return
{
object
} */
declare
const
find
:
(
obj
:
any
,
iterate
:
any
,
context
?:
any
) =>
any
;
export
default
find;