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
/
convert
/
_trim_positive.js
9 lines
(4 loc)
•
109 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
function
_trim_positive
(
a , ai , aj
) {
while
( a[ai] ===
0
&& ai < aj ) ++ai ;
return
ai ; }