UNPKG
xe-utils-es
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
JavaScript 函数库、工具类
xe-utils-es
/
types
/
every.d.ts
11 lines
(10 loc)
•
376 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * 对象中的值中的每一项运行给定函数,如果该函数对每一项都返回true,则返回true,否则返回false * *
@param
{
object
} obj 对象/数组 *
@param
{
Function
} iterate(item, index, obj) 回调 *
@param
{
object
} context 上下文 *
@return
{
boolean
} */
declare
const
every
:
(
obj
:
any
,
iterate
:
any
,
context
?:
any
) =>
any
;
export
default
every;