File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 51
51
"unicorn/no-useless-spread": "error",
52
52
"unicorn/prefer-array-flat": "error",
53
53
"unicorn/prefer-array-flat-map": "error",
54
+ "unicorn/prefer-array-index-of": "error",
54
55
"unicorn/prefer-at": "error",
55
56
"unicorn/prefer-date-now": "error",
56
57
"unicorn/prefer-dom-node-append": "error",
Original file line number Diff line number Diff line change @@ -5658,7 +5658,7 @@ class Template extends XFAObject {
5658
5658
// We must stop the contentAreas filling and go to the next page.
5659
5659
targetPageArea = target ;
5660
5660
} else if ( target instanceof ContentArea ) {
5661
- const index = contentAreas . findIndex ( e => e === target ) ;
5661
+ const index = contentAreas . indexOf ( target ) ;
5662
5662
if ( index !== - 1 ) {
5663
5663
if ( index > currentIndex ) {
5664
5664
// In the next loop iteration `i` will be incremented, note the
@@ -5671,9 +5671,7 @@ class Template extends XFAObject {
5671
5671
}
5672
5672
} else {
5673
5673
targetPageArea = target [ $getParent ] ( ) ;
5674
- startIndex = targetPageArea . contentArea . children . findIndex (
5675
- e => e === target
5676
- ) ;
5674
+ startIndex = targetPageArea . contentArea . children . indexOf ( target ) ;
5677
5675
}
5678
5676
}
5679
5677
continue ;
You can’t perform that action at this time.
0 commit comments