UNPKG
aureooms-js-integer
Version:
latest (1.0.0)
1.0.0
0.3.2
0.3.1
0.3.0
integer code bricks for JavaScript
aureooms.github.io/js-integer
aureooms/js-integer
aureooms-js-integer
/
src
/
1-new
/
compare
/
_jz.js
17 lines
(11 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** * Returns true if number is 0. * *
@param
{
array
} a first operand *
@param
{
int
} ai a left *
@param
{
int
} aj a right */
export
function
_jz
(
a , ai , aj
) {
for
( ; ai < aj ; ++ai )
if
( a[ai] !==
0
)
return
false
;
return
true
; }