Code Duplication    Length = 3-7 lines in 2 locations

formio/node_modules/bignumber.js/bignumber.js 2 locations

@@ 1299-1305 (lines=7) @@
1296
                    // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1297
                      xc[ni + 1] != null || ( j < 0 ? n : n % pows10[ d - j - 1 ] );
1298
1299
                    r = rm < 4
1300
                      ? ( rd || r ) && ( rm == 0 || rm == ( x.s < 0 ? 3 : 2 ) )
1301
                      : rd > 5 || rd == 5 && ( rm == 4 || r || rm == 6 &&
1302
1303
                        // Check whether the digit to the left of the rounding digit is odd.
1304
                        ( ( i > 0 ? j > 0 ? n / pows10[ d - j ] : 0 : xc[ni - 1] ) % 10 ) & 1 ||
1305
                          rm == ( x.s < 0 ? 8 : 7 ) );
1306
1307
                    if ( sd < 1 || !xc[0] ) {
1308
                        xc.length = 0;
@@ 712-714 (lines=3) @@
709
            k = baseOut / 2;
710
            r = r || d < 0 || xc[d + 1] != null;
711
712
            r = rm < 4 ? ( i != null || r ) && ( rm == 0 || rm == ( x.s < 0 ? 3 : 2 ) )
713
                       : i > k || i == k &&( rm == 4 || r || rm == 6 && xc[d - 1] & 1 ||
714
                         rm == ( x.s < 0 ? 8 : 7 ) );
715
716
            if ( d < 1 || !xc[0] ) {
717