@@ -22,7 +22,7 @@ export class MonotonousArray<T> {
2222 for ( const item of this . _array ) {
2323 if ( this . _prevFindLastPredicate ( item ) && ! predicate ( item ) ) {
2424 throw new Error (
25- "MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate."
25+ "MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate." ,
2626 ) ;
2727 }
2828 }
@@ -33,7 +33,7 @@ export class MonotonousArray<T> {
3333 const idx = findLastIdxMonotonous (
3434 this . _array ,
3535 predicate ,
36- this . _findLastMonotonousLastIdx
36+ this . _findLastMonotonousLastIdx ,
3737 ) ;
3838 this . _findLastMonotonousLastIdx = idx + 1 ;
3939 return idx === - 1 ? undefined : this . _array [ idx ] ;
@@ -48,7 +48,7 @@ export class MonotonousArray<T> {
4848 */
4949export function findLastMonotonous < T > (
5050 array : readonly T [ ] ,
51- predicate : ( item : T ) => boolean
51+ predicate : ( item : T ) => boolean ,
5252) : T | undefined {
5353 const idx = findLastIdxMonotonous ( array , predicate ) ;
5454 return idx === - 1 ? undefined : array [ idx ] ;
@@ -64,7 +64,7 @@ export function findLastIdxMonotonous<T>(
6464 array : readonly T [ ] ,
6565 predicate : ( item : T ) => boolean ,
6666 startIdx = 0 ,
67- endIdxEx = array . length
67+ endIdxEx = array . length ,
6868) : number {
6969 let i = startIdx ;
7070 let j = endIdxEx ;
@@ -89,7 +89,7 @@ export function findFirstIdxMonotonousOrArrLen<T>(
8989 array : readonly T [ ] ,
9090 predicate : ( item : T ) => boolean ,
9191 startIdx = 0 ,
92- endIdxEx = array . length
92+ endIdxEx = array . length ,
9393) : number {
9494 let i = startIdx ;
9595 let j = endIdxEx ;
@@ -112,7 +112,7 @@ export function findFirstIdxMonotonousOrArrLen<T>(
112112 */
113113export function findFirstMonotonous < T > (
114114 array : readonly T [ ] ,
115- predicate : ( item : T ) => boolean
115+ predicate : ( item : T ) => boolean ,
116116) : T | undefined {
117117 const idx = findFirstIdxMonotonousOrArrLen ( array , predicate ) ;
118118 return idx === array . length ? undefined : array [ idx ] ;
0 commit comments