UNPKG
hypertabs
Version:
latest (5.0.2)
5.0.2
5.0.1
5.0.0
4.2.0
4.1.1
4.1.0
4.0.0
3.0.3
3.0.2
3.0.1
3.0.0
2.3.0
2.2.2
2.2.1
2.2.0
2.1.0
1.2.0
1.1.0
1.0.0
0.2.0
0.1.1
0.1.0
0.0.0
tabbed interface with hyperscript
github.com/dominictarr/hypertabs
dominictarr/hypertabs
hypertabs
/
util.js
14 lines
(9 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
exports
.
each
=
function
each
(
list, iter
) {
for
(
var
i =
0
; i < list.
length
; i++)
iter
(list[i], i, list) }
exports
.
find
=
function
find
(
list, test
) {
for
(
var
i =
0
; i < list.
length
; i++)
if
(
test
(list[i], i, list))
return
i
return
-
1
}