UNPKG
@mdui/jq
Version:
latest (3.0.3)
3.0.3
3.0.2
3.0.1
3.0.0
拥有和 jQuery 相似 API 的轻量级 JavaScript 工具库
github.com/zdhxiong/mdui
zdhxiong/mdui
@mdui/jq
/
methods
/
each.js
9 lines
(8 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ $ }
from
'../$.js'
;
import
{ eachArray }
from
'../shared/helper.js'
;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
$.fn.
each
=
function
(
callback
) {
return
eachArray
(
this
,
(
value, index
) =>
{
return
callback.
call
(value, index, value); }); };