UNPKG
devbox-linq
Version:
latest (4.1.2)
4.1.2
4.1.1
4.1.0
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.2.4
3.2.3
3.1.3
3.0.3
3.0.2
3.0.1
3.0.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.2
1.0.1
1.0.0
Lambda style operations using arrow functions
github.com/GustavoMaritan/LinqJs
GustavoMaritan/LinqJs
devbox-linq
/
lib
/
boolean.js
14 lines
(10 loc)
•
317 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Array
.
prototype
.
any
=
function
(
condition
) {
if
(
typeof
condition ===
'undefined'
)
return
this
.
length
>
0
;
return
this
.
some
(condition); };
Array
.
prototype
.
all
=
function
(
condition
) {
if
(
typeof
condition ===
'undefined'
)
return
false
;
return
this
.
every
(condition); };