Skip to content

Commit 7ef19e7

Browse files
authored
chore: accept fetch function (#262)
* enable request modes * fix types * enable configurations via configurable fetch function * fix build * restore package-lock
1 parent 083af4c commit 7ef19e7

File tree

86 files changed

+222
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+222
-173
lines changed

docs/eth-connect.bignumber._constructor_.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Returns a new instance of a BigNumber object with value `n`<!-- -->, where `n` i
1010
x = new BigNumber(123.4567) // '123.4567'
1111
// 'new' is optional
1212
y = BigNumber(x) // '123.4567'
13-
1413
```
1514
If `n` is a base 10 value it can be in normal (fixed-point) or exponential notation. Values in other bases must be in normal notation. Values in any base can have fraction digits, i.e. digits after the decimal point.
1615

@@ -19,7 +18,6 @@ new BigNumber(43210) // '43210'
1918
new BigNumber('4.321e+4') // '43210'
2019
new BigNumber('-735.0918e-430') // '-7.350918e-428'
2120
new BigNumber('123412421.234324', 5) // '607236.557696'
22-
2321
```
2422
Signed `0`<!-- -->, signed `Infinity` and `NaN` are supported.
2523

@@ -29,7 +27,6 @@ new BigNumber(NaN) // 'NaN'
2927
new BigNumber(-0) // '0'
3028
new BigNumber('.5') // '0.5'
3129
new BigNumber('+2') // '2'
32-
3330
```
3431
String values in hexadecimal literal form, e.g. `'0xff'`<!-- -->, are valid, as are string values with the octal and binary prefixs `'0o'` and `'0b'`<!-- -->. String values in octal literal form without the prefix will be interpreted as decimals, e.g. `'011'` is interpreted as 11, not 9.
3532

@@ -38,15 +35,13 @@ new BigNumber(-10110100.1, 2) // '-180.5'
3835
new BigNumber('-0b10110100.1') // '-180.5'
3936
new BigNumber('ff.8', 16) // '255.5'
4037
new BigNumber('0xff.8') // '255.5'
41-
4238
```
4339
If a base is specified, `n` is rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` settings. This includes base 10, so don't include a `base` parameter for decimal values unless this behaviour is desired.
4440

4541
```ts
4642
BigNumber.config({ DECIMAL_PLACES: 5 })
4743
new BigNumber(1.23456789) // '1.23456789'
4844
new BigNumber(1.23456789, 10) // '1.23457'
49-
5045
```
5146
An error is thrown if `base` is invalid.
5247

@@ -55,15 +50,13 @@ There is no limit to the number of digits of a value of type string (other than
5550
```ts
5651
new BigNumber('5032485723458348569331745.33434346346912144534543')
5752
new BigNumber('4.321e10000000')
58-
5953
```
6054
BigNumber `NaN` is returned if `n` is invalid (unless `BigNumber.DEBUG` is `true`<!-- -->, see below).
6155

6256
```ts
6357
new BigNumber('.1*') // 'NaN'
6458
new BigNumber('blurgh') // 'NaN'
6559
new BigNumber(9, 2) // 'NaN'
66-
6760
```
6861
To aid in debugging, if `BigNumber.DEBUG` is `true` then an error will be thrown on an invalid `n`<!-- -->. An error will also be thrown if `n` is of type number with more than 15 significant digits, as calling `toString` or `valueOf` on these numbers may not result in the intended value.
6962

@@ -75,13 +68,11 @@ BigNumber.DEBUG = true
7568
new BigNumber(823456789123456.3)
7669
// 'Error: Not a base 2 number'
7770
new BigNumber(9, 2)
78-
7971
```
8072
A BigNumber can also be created from an object literal. Use `isBigNumber` to check that it is well-formed.
8173

8274
```ts
8375
new BigNumber({ s: 1, e: 2, c: [ 777, 12300000000000 ], _isBigNumber: true }) // '777.123'
84-
8576
```
8677

8778
<b>Signature:</b>

docs/eth-connect.bignumber.abs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The return value is always exact and unrounded.
1111
```ts
1212
x = new BigNumber(-0.8)
1313
x.abs() // '0.8'
14-
1514
```
1615

1716
<b>Signature:</b>

docs/eth-connect.bignumber.absolutevalue.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The return value is always exact and unrounded.
1111
```ts
1212
x = new BigNumber(-0.8)
1313
x.absoluteValue() // '0.8'
14-
1514
```
1615

1716
<b>Signature:</b>

docs/eth-connect.bignumber.clone.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ y.div(3) // 0.333333333
2121
// BN = BigNumber.clone({ DECIMAL_PLACES: 9 }) is equivalent to:
2222
BN = BigNumber.clone()
2323
BN.config({ DECIMAL_PLACES: 9 })
24-
2524
```
2625

2726
<b>Signature:</b>

docs/eth-connect.bignumber.comparedto.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ x.comparedTo(y) // 1
1414
x.comparedTo(x.minus(1)) // 0
1515
y.comparedTo(NaN) // null
1616
y.comparedTo('110', 2) // -1
17-
1817
```
1918

2019
<b>Signature:</b>

docs/eth-connect.bignumber.config.alphabet.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ BigNumber.config({ ALPHABET: '0123456789TE' })
1616
x = new BigNumber('T', 12)
1717
x.toString() // '10'
1818
x.toString(12) // 'T'
19-
2019
```
2120

2221
<b>Signature:</b>

docs/eth-connect.bignumber.config.crypto.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ global.crypto = require('crypto')
2121
BigNumber.config({ CRYPTO: true })
2222
BigNumber.config().CRYPTO // true
2323
BigNumber.random() // 0.54340758610486147524
24-
2524
```
2625

2726
<b>Signature:</b>

docs/eth-connect.bignumber.config.decimal_places.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The maximum number of decimal places of the result of operations involving divis
1111
```ts
1212
BigNumber.config({ DECIMAL_PLACES: 5 })
1313
BigNumber.set({ DECIMAL_PLACES: 5 })
14-
1514
```
1615

1716
<b>Signature:</b>

docs/eth-connect.bignumber.config.exponential_at.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
3030

3131
// Always return exponential notation:
3232
BigNumber.config({ EXPONENTIAL_AT: 0 })
33-
3433
```
3534
Regardless of the value of `EXPONENTIAL_AT`<!-- -->, the `toFixed` method will always return a value in normal notation and the `toExponential` method will always return a value in exponential form. Calling `toString` with a base argument, e.g. `toString(10)`<!-- -->, will also always return normal notation.
3635

docs/eth-connect.bignumber.config.format.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ BigNumber.config({
3333
suffix: ''
3434
}
3535
})
36-
3736
```
3837

3938
<b>Signature:</b>

docs/eth-connect.bignumber.config.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ BigNumber.config({ ALPHABET: '0123456789TE' })
2323
x = new BigNumber('T', 12)
2424
x.toString() // '10'
2525
x.toString(12) // 'T'
26-
2726
```
2827
|
2928
| [CRYPTO?](./eth-connect.bignumber.config.crypto.md) | boolean | <i>(Optional)</i> A boolean: <code>true</code> or <code>false</code>. Default value: <code>false</code>.<!-- -->The value that determines whether cryptographically-secure pseudo-random number generation is used. If <code>CRYPTO</code> is set to true then the random method will generate random digits using <code>crypto.getRandomValues</code> in browsers that support it, or <code>crypto.randomBytes</code> if using a version of Node.js that supports it.<!-- -->If neither function is supported by the host environment then attempting to set <code>CRYPTO</code> to <code>true</code> will fail and an exception will be thrown.<!-- -->If <code>CRYPTO</code> is <code>false</code> then the source of randomness used will be <code>Math.random</code> (which is assumed to generate at least 30 bits of randomness).<!-- -->See <code>BigNumber.random</code>.
@@ -34,14 +33,12 @@ global.crypto = require('crypto')
3433
BigNumber.config({ CRYPTO: true })
3534
BigNumber.config().CRYPTO // true
3635
BigNumber.random() // 0.54340758610486147524
37-
3836
```
3937
|
4038
| [DECIMAL\_PLACES?](./eth-connect.bignumber.config.decimal_places.md) | number | <i>(Optional)</i> An integer, 0 to 1e+9. Default value: 20.<!-- -->The maximum number of decimal places of the result of operations involving division, i.e. division, square root and base conversion operations, and exponentiation when the exponent is negative.
4139
```ts
4240
BigNumber.config({ DECIMAL_PLACES: 5 })
4341
BigNumber.set({ DECIMAL_PLACES: 5 })
44-
4542
```
4643
|
4744
| [EXPONENTIAL\_AT?](./eth-connect.bignumber.config.exponential_at.md) | number \| \[number, number\] | <i>(Optional)</i> An integer, 0 to 1e+9, or an array, \[-1e+9 to 0, 0 to 1e+9\]. Default value: <code>[-7, 20]</code>.<!-- -->The exponent value(s) at which <code>toString</code> returns exponential notation.<!-- -->If a single number is assigned, the value is the exponent magnitude.<!-- -->If an array of two numbers is assigned then the first number is the negative exponent value at and beneath which exponential notation is used, and the second number is the positive exponent value at and above which exponential notation is used.<!-- -->For example, to emulate JavaScript numbers in terms of the exponent values at which they begin to use exponential notation, use <code>[-7, 20]</code>.
@@ -61,7 +58,6 @@ BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
6158

6259
// Always return exponential notation:
6360
BigNumber.config({ EXPONENTIAL_AT: 0 })
64-
6561
```
6662
Regardless of the value of <code>EXPONENTIAL_AT</code>, the <code>toFixed</code> method will always return a value in normal notation and the <code>toExponential</code> method will always return a value in exponential form. Calling <code>toString</code> with a base argument, e.g. <code>toString(10)</code>, will also always return normal notation. |
6763
| [FORMAT?](./eth-connect.bignumber.config.format.md) | [BigNumber.Format](./eth-connect.bignumber.format.md) | <i>(Optional)</i> An object including any number of the properties shown below.<!-- -->The object configures the format of the string returned by the <code>toFormat</code> method. The example below shows the properties of the object that are recognised, and their default values.<!-- -->Unlike the other configuration properties, the values of the properties of the <code>FORMAT</code> object will not be checked for validity - the existing object will simply be replaced by the object that is passed in.<!-- -->See <code>toFormat</code>.
@@ -86,20 +82,17 @@ BigNumber.config({
8682
suffix: ''
8783
}
8884
})
89-
9085
```
9186
|
9287
| [MODULO\_MODE?](./eth-connect.bignumber.config.modulo_mode.md) | [BigNumber.ModuloMode](./eth-connect.bignumber.modulomode.md) | <i>(Optional)</i> An integer, 0, 1, 3, 6 or 9. Default value: <code>BigNumber.ROUND_DOWN</code> (1).<!-- -->The modulo mode used when calculating the modulus: <code>a mod n</code>. The quotient, <code>q = a / n</code>, is calculated according to the <code>ROUNDING_MODE</code> that corresponds to the chosen <code>MODULO_MODE</code>. The remainder, <code>r</code>, is calculated as: <code>r = a - n * q</code>.<!-- -->The modes that are most commonly used for the modulus/remainder operation are shown in the following table. Although the other rounding modes can be used, they may not give useful results.<!-- -->Property \| Value \| Description :\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\|:\-\-\-\-\-\-\|:\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- <code>ROUND_UP</code> \| 0 \| The remainder is positive if the dividend is negative. <code>ROUND_DOWN</code> \| 1 \| The remainder has the same sign as the dividend. \| \| Uses 'truncating division' and matches JavaScript's <code>%</code> operator . <code>ROUND_FLOOR</code> \| 3 \| The remainder has the same sign as the divisor. \| \| This matches Python's <code>%</code> operator. <code>ROUND_HALF_EVEN</code> \| 6 \| The IEEE 754 remainder function. <code>EUCLID</code> \| 9 \| The remainder is always positive. \| \| Euclidian division: <code>q = sign(n) * floor(a / abs(n))</code>The rounding/modulo modes are available as enumerated properties of the BigNumber constructor.<!-- -->See <code>modulo</code>.
9388
```ts
9489
BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
9590
BigNumber.set({ MODULO_MODE: 9 }) // equivalent
96-
9791
```
9892
|
9993
| [POW\_PRECISION?](./eth-connect.bignumber.config.pow_precision.md) | number | <i>(Optional)</i> An integer, 0 to 1e+9. Default value: 0.<!-- -->The maximum precision, i.e. number of significant digits, of the result of the power operation - unless a modulus is specified.<!-- -->If set to 0, the number of significant digits will not be limited.<!-- -->See <code>exponentiatedBy</code>.
10094
```ts
10195
BigNumber.config({ POW_PRECISION: 100 })
102-
10396
```
10497
|
10598
| [RANGE?](./eth-connect.bignumber.config.range.md) | number \| \[number, number\] | <i>(Optional)</i> An integer, magnitude 1 to 1e+9, or an array, \[-1e+9 to -1, 1 to 1e+9\]. Default value: <code>[-1e+9, 1e+9]</code>.<!-- -->The exponent value(s) beyond which overflow to Infinity and underflow to zero occurs.<!-- -->If a single number is assigned, it is the maximum exponent magnitude: values wth a positive exponent of greater magnitude become Infinity and those with a negative exponent of greater magnitude become zero.<!-- -->If an array of two numbers is assigned then the first number is the negative exponent limit and the second number is the positive exponent limit.<!-- -->For example, to emulate JavaScript numbers in terms of the exponent values at which they become zero and Infinity, use \[-324, 308\].
@@ -116,14 +109,12 @@ new BigNumber(99999) // '99999' e is only 4
116109
new BigNumber(100000) // 'Infinity' e is 5
117110
new BigNumber(0.001) // '0.01' e is only -3
118111
new BigNumber(0.0001) // '0' e is -4
119-
120112
```
121113
The largest possible magnitude of a finite BigNumber is 9.999...e+1000000000. The smallest possible magnitude of a non-zero BigNumber is 1e-1000000000. |
122114
| [ROUNDING\_MODE?](./eth-connect.bignumber.config.rounding_mode.md) | [BigNumber.RoundingMode](./eth-connect.bignumber.roundingmode.md) | <i>(Optional)</i> An integer, 0 to 8. Default value: <code>BigNumber.ROUND_HALF_UP</code> (4).<!-- -->The rounding mode used in operations that involve division (see <code>DECIMAL_PLACES</code>) and the default rounding mode of the <code>decimalPlaces</code>, <code>precision</code>, <code>toExponential</code>, <code>toFixed</code>, <code>toFormat</code> and <code>toPrecision</code> methods.<!-- -->The modes are available as enumerated properties of the BigNumber constructor.
123115
```ts
124116
BigNumber.config({ ROUNDING_MODE: 0 })
125117
BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP })
126-
127118
```
128119
|
129120

docs/eth-connect.bignumber.config.modulo_mode.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ See `modulo`<!-- -->.
1919
```ts
2020
BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
2121
BigNumber.set({ MODULO_MODE: 9 }) // equivalent
22-
2322
```
2423

2524
<b>Signature:</b>

docs/eth-connect.bignumber.config.pow_precision.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ See `exponentiatedBy`<!-- -->.
1414

1515
```ts
1616
BigNumber.config({ POW_PRECISION: 100 })
17-
1817
```
1918

2019
<b>Signature:</b>

docs/eth-connect.bignumber.config.range.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ new BigNumber(99999) // '99999' e is only 4
2727
new BigNumber(100000) // 'Infinity' e is 5
2828
new BigNumber(0.001) // '0.01' e is only -3
2929
new BigNumber(0.0001) // '0' e is -4
30-
3130
```
3231
The largest possible magnitude of a finite BigNumber is 9.999...e+1000000000. The smallest possible magnitude of a non-zero BigNumber is 1e-1000000000.
3332

docs/eth-connect.bignumber.config.rounding_mode.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ The modes are available as enumerated properties of the BigNumber constructor.
1313
```ts
1414
BigNumber.config({ ROUNDING_MODE: 0 })
1515
BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP })
16-
1716
```
1817

1918
<b>Signature:</b>

docs/eth-connect.bignumber.debug.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ new BigNumber(9, 2) // 'NaN'
1313
BigNumber.DEBUG = true
1414
new BigNumber('blurgh') // '[BigNumber Error] Not a number'
1515
new BigNumber(9, 2) // '[BigNumber Error] Not a base 2 number'
16-
1716
```
1817
An error will also be thrown if a `BigNumber.Value` is of type number with more than 15 significant digits, as calling `toString` or `valueOf` on such numbers may not result in the intended value.
1918

@@ -24,7 +23,6 @@ new BigNumber(823456789123456.3) // '823456789123456.2'
2423
BigNumber.DEBUG = true
2524
new BigNumber(823456789123456.3)
2625
// '[BigNumber Error] Number primitive has more than 15 significant digits'
27-
2826
```
2927
Check that a BigNumber instance is well-formed:
3028

@@ -39,7 +37,6 @@ BigNumber.isBigNumber(x) // true
3937

4038
BigNumber.DEBUG = true
4139
BigNumber.isBigNumber(x) // '[BigNumber Error] Invalid BigNumber'
42-
4340
```
4441

4542
<b>Signature:</b>

docs/eth-connect.bignumber.decimalplaces.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ x.decimalPlaces(1, BigNumber.ROUND_HALF_EVEN) // '1234.6'
2525
x // '1234.56'
2626
y = new BigNumber('9.9e-101')
2727
y.decimalPlaces() // 102
28-
2928
```
3029

3130
<b>Signature:</b>

docs/eth-connect.bignumber.div.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ y = new BigNumber(113)
1212
x.div(y) // '3.14159292035398230088'
1313
x.div(5) // '71'
1414
x.div(47, 16) // '5'
15-
1615
```
1716

1817
<b>Signature:</b>

docs/eth-connect.bignumber.dividedby.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ y = new BigNumber(113)
1212
x.dividedBy(y) // '3.14159292035398230088'
1313
x.dividedBy(5) // '71'
1414
x.dividedBy(47, 16) // '5'
15-
1615
```
1716

1817
<b>Signature:</b>

docs/eth-connect.bignumber.dividedtointegerby.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ y = new BigNumber(3)
1212
x.dividedToIntegerBy(y) // '1'
1313
x.dividedToIntegerBy(0.7) // '7'
1414
x.dividedToIntegerBy('0.f', 16) // '5'
15-
1615
```
1716

1817
<b>Signature:</b>

docs/eth-connect.bignumber.dp.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ x.dp(1, BigNumber.ROUND_HALF_EVEN) // '1234.6'
2525
x // '1234.56'
2626
y = new BigNumber('9.9e-101')
2727
y.dp() // 102
28-
2928
```
3029

3130
<b>Signature:</b>

docs/eth-connect.bignumber.eq.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ BigNumber(255).eq('ff', 16) // true
1717

1818
y = new BigNumber(NaN)
1919
y.eq(NaN) // false
20-
2120
```
2221

2322
<b>Signature:</b>

docs/eth-connect.bignumber.exponentiatedby.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Math.pow(0.7, 2) // 0.48999999999999994
2121
x = new BigNumber(0.7)
2222
x.exponentiatedBy(2) // '0.49'
2323
BigNumber(3).exponentiatedBy(-2) // '0.11111111111111111111'
24-
2524
```
2625

2726
<b>Signature:</b>

docs/eth-connect.bignumber.gt.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ x = new BigNumber(0.1)
1212
x.gt(BigNumber(0.3).minus(0.2)) // false
1313
BigNumber(0).gt(x) // false
1414
BigNumber(11, 3).gt(11.1, 2) // true
15-
1615
```
1716
1817
<b>Signature:</b>

docs/eth-connect.bignumber.gte.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ x = new BigNumber(0.3).minus(0.2)
1212
x.gte(0.1) // true
1313
BigNumber(1).gte(x) // true
1414
BigNumber(10, 18).gte('i', 36) // true
15-
1615
```
1716

1817
<b>Signature:</b>

docs/eth-connect.bignumber.idiv.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ y = new BigNumber(3)
1212
x.idiv(y) // '1'
1313
x.idiv(0.7) // '7'
1414
x.idiv('0.f', 16) // '5'
15-
1615
```
1716

1817
<b>Signature:</b>

docs/eth-connect.bignumber.integervalue.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ x.integerValue(BigNumber.ROUND_CEIL) // '124'
1717
y = new BigNumber(-12.7)
1818
y.integerValue() // '-13'
1919
x.integerValue(BigNumber.ROUND_DOWN) // '-12'
20-
2120
```
2221

2322
<b>Signature:</b>

docs/eth-connect.bignumber.isbignumber.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ BN = BigNumber.clone();
2020
z = new BN(x)
2121
z instanceof BigNumber // false
2222
BigNumber.isBigNumber(z) // true
23-
2423
```
2524

2625
<b>Signature:</b>

docs/eth-connect.bignumber.isequalto.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ BigNumber(255).isEqualTo('ff', 16) // true
1717

1818
y = new BigNumber(NaN)
1919
y.isEqualTo(NaN) // false
20-
2120
```
2221

2322
<b>Signature:</b>

docs/eth-connect.bignumber.isfinite.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ x = new BigNumber(1)
1313
x.isFinite() // true
1414
y = new BigNumber(Infinity)
1515
y.isFinite() // false
16-
1716
```
1817

1918
<b>Signature:</b>

docs/eth-connect.bignumber.isgreaterthan.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ x = new BigNumber(0.1)
1212
x.isGreaterThan(BigNumber(0.3).minus(0.2)) // false
1313
BigNumber(0).isGreaterThan(x) // false
1414
BigNumber(11, 3).isGreaterThan(11.1, 2) // true
15-
1615
```
1716

1817
<b>Signature:</b>

docs/eth-connect.bignumber.isgreaterthanorequalto.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ x = new BigNumber(0.3).minus(0.2)
1212
x.isGreaterThanOrEqualTo(0.1) // true
1313
BigNumber(1).isGreaterThanOrEqualTo(x) // true
1414
BigNumber(10, 18).isGreaterThanOrEqualTo('i', 36) // true
15-
1615
```
1716

1817
<b>Signature:</b>

0 commit comments

Comments
 (0)