Skip to content

Commit

Permalink
chore: accept fetch function (#262)
Browse files Browse the repository at this point in the history
* enable request modes

* fix types

* enable configurations via configurable fetch function

* fix build

* restore package-lock
  • Loading branch information
menduz authored May 30, 2022
1 parent 083af4c commit 7ef19e7
Show file tree
Hide file tree
Showing 86 changed files with 222 additions and 173 deletions.
9 changes: 0 additions & 9 deletions docs/eth-connect.bignumber._constructor_.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Returns a new instance of a BigNumber object with value `n`<!-- -->, where `n` i
x = new BigNumber(123.4567) // '123.4567'
// 'new' is optional
y = BigNumber(x) // '123.4567'

```
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.

Expand All @@ -19,7 +18,6 @@ new BigNumber(43210) // '43210'
new BigNumber('4.321e+4') // '43210'
new BigNumber('-735.0918e-430') // '-7.350918e-428'
new BigNumber('123412421.234324', 5) // '607236.557696'

```
Signed `0`<!-- -->, signed `Infinity` and `NaN` are supported.

Expand All @@ -29,7 +27,6 @@ new BigNumber(NaN) // 'NaN'
new BigNumber(-0) // '0'
new BigNumber('.5') // '0.5'
new BigNumber('+2') // '2'

```
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.

Expand All @@ -38,15 +35,13 @@ new BigNumber(-10110100.1, 2) // '-180.5'
new BigNumber('-0b10110100.1') // '-180.5'
new BigNumber('ff.8', 16) // '255.5'
new BigNumber('0xff.8') // '255.5'

```
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.

```ts
BigNumber.config({ DECIMAL_PLACES: 5 })
new BigNumber(1.23456789) // '1.23456789'
new BigNumber(1.23456789, 10) // '1.23457'

```
An error is thrown if `base` is invalid.

Expand All @@ -55,15 +50,13 @@ There is no limit to the number of digits of a value of type string (other than
```ts
new BigNumber('5032485723458348569331745.33434346346912144534543')
new BigNumber('4.321e10000000')

```
BigNumber `NaN` is returned if `n` is invalid (unless `BigNumber.DEBUG` is `true`<!-- -->, see below).

```ts
new BigNumber('.1*') // 'NaN'
new BigNumber('blurgh') // 'NaN'
new BigNumber(9, 2) // 'NaN'

```
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.

Expand All @@ -75,13 +68,11 @@ BigNumber.DEBUG = true
new BigNumber(823456789123456.3)
// 'Error: Not a base 2 number'
new BigNumber(9, 2)

```
A BigNumber can also be created from an object literal. Use `isBigNumber` to check that it is well-formed.

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

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.abs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ The return value is always exact and unrounded.
```ts
x = new BigNumber(-0.8)
x.abs() // '0.8'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.absolutevalue.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ The return value is always exact and unrounded.
```ts
x = new BigNumber(-0.8)
x.absoluteValue() // '0.8'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.clone.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ y.div(3) // 0.333333333
// BN = BigNumber.clone({ DECIMAL_PLACES: 9 }) is equivalent to:
BN = BigNumber.clone()
BN.config({ DECIMAL_PLACES: 9 })

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.comparedto.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ x.comparedTo(y) // 1
x.comparedTo(x.minus(1)) // 0
y.comparedTo(NaN) // null
y.comparedTo('110', 2) // -1

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.alphabet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ BigNumber.config({ ALPHABET: '0123456789TE' })
x = new BigNumber('T', 12)
x.toString() // '10'
x.toString(12) // 'T'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ global.crypto = require('crypto')
BigNumber.config({ CRYPTO: true })
BigNumber.config().CRYPTO // true
BigNumber.random() // 0.54340758610486147524

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.decimal_places.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ The maximum number of decimal places of the result of operations involving divis
```ts
BigNumber.config({ DECIMAL_PLACES: 5 })
BigNumber.set({ DECIMAL_PLACES: 5 })

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.exponential_at.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ BigNumber.config({ EXPONENTIAL_AT: 1e+9 })

// Always return exponential notation:
BigNumber.config({ EXPONENTIAL_AT: 0 })

```
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.

Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.format.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ BigNumber.config({
suffix: ''
}
})

```

<b>Signature:</b>
Expand Down
9 changes: 0 additions & 9 deletions docs/eth-connect.bignumber.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ BigNumber.config({ ALPHABET: '0123456789TE' })
x = new BigNumber('T', 12)
x.toString() // '10'
x.toString(12) // 'T'

```
|
| [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>.
Expand All @@ -34,14 +33,12 @@ global.crypto = require('crypto')
BigNumber.config({ CRYPTO: true })
BigNumber.config().CRYPTO // true
BigNumber.random() // 0.54340758610486147524

```
|
| [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.
```ts
BigNumber.config({ DECIMAL_PLACES: 5 })
BigNumber.set({ DECIMAL_PLACES: 5 })

```
|
| [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>.
Expand All @@ -61,7 +58,6 @@ BigNumber.config({ EXPONENTIAL_AT: 1e+9 })

// Always return exponential notation:
BigNumber.config({ EXPONENTIAL_AT: 0 })

```
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. |
| [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>.
Expand All @@ -86,20 +82,17 @@ BigNumber.config({
suffix: ''
}
})

```
|
| [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>.
```ts
BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
BigNumber.set({ MODULO_MODE: 9 }) // equivalent

```
|
| [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>.
```ts
BigNumber.config({ POW_PRECISION: 100 })

```
|
| [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\].
Expand All @@ -116,14 +109,12 @@ new BigNumber(99999) // '99999' e is only 4
new BigNumber(100000) // 'Infinity' e is 5
new BigNumber(0.001) // '0.01' e is only -3
new BigNumber(0.0001) // '0' e is -4

```
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. |
| [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.
```ts
BigNumber.config({ ROUNDING_MODE: 0 })
BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP })

```
|

1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.modulo_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ See `modulo`<!-- -->.
```ts
BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
BigNumber.set({ MODULO_MODE: 9 }) // equivalent

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.pow_precision.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ See `exponentiatedBy`<!-- -->.

```ts
BigNumber.config({ POW_PRECISION: 100 })

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.range.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ new BigNumber(99999) // '99999' e is only 4
new BigNumber(100000) // 'Infinity' e is 5
new BigNumber(0.001) // '0.01' e is only -3
new BigNumber(0.0001) // '0' e is -4

```
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.

Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.config.rounding_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ The modes are available as enumerated properties of the BigNumber constructor.
```ts
BigNumber.config({ ROUNDING_MODE: 0 })
BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP })

```

<b>Signature:</b>
Expand Down
3 changes: 0 additions & 3 deletions docs/eth-connect.bignumber.debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ new BigNumber(9, 2) // 'NaN'
BigNumber.DEBUG = true
new BigNumber('blurgh') // '[BigNumber Error] Not a number'
new BigNumber(9, 2) // '[BigNumber Error] Not a base 2 number'

```
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.

Expand All @@ -24,7 +23,6 @@ new BigNumber(823456789123456.3) // '823456789123456.2'
BigNumber.DEBUG = true
new BigNumber(823456789123456.3)
// '[BigNumber Error] Number primitive has more than 15 significant digits'

```
Check that a BigNumber instance is well-formed:

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

BigNumber.DEBUG = true
BigNumber.isBigNumber(x) // '[BigNumber Error] Invalid BigNumber'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.decimalplaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ x.decimalPlaces(1, BigNumber.ROUND_HALF_EVEN) // '1234.6'
x // '1234.56'
y = new BigNumber('9.9e-101')
y.decimalPlaces() // 102

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.div.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ y = new BigNumber(113)
x.div(y) // '3.14159292035398230088'
x.div(5) // '71'
x.div(47, 16) // '5'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.dividedby.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ y = new BigNumber(113)
x.dividedBy(y) // '3.14159292035398230088'
x.dividedBy(5) // '71'
x.dividedBy(47, 16) // '5'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.dividedtointegerby.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ y = new BigNumber(3)
x.dividedToIntegerBy(y) // '1'
x.dividedToIntegerBy(0.7) // '7'
x.dividedToIntegerBy('0.f', 16) // '5'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.dp.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ x.dp(1, BigNumber.ROUND_HALF_EVEN) // '1234.6'
x // '1234.56'
y = new BigNumber('9.9e-101')
y.dp() // 102

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.eq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ BigNumber(255).eq('ff', 16) // true

y = new BigNumber(NaN)
y.eq(NaN) // false

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.exponentiatedby.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Math.pow(0.7, 2) // 0.48999999999999994
x = new BigNumber(0.7)
x.exponentiatedBy(2) // '0.49'
BigNumber(3).exponentiatedBy(-2) // '0.11111111111111111111'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.gt.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ x = new BigNumber(0.1)
x.gt(BigNumber(0.3).minus(0.2)) // false
BigNumber(0).gt(x) // false
BigNumber(11, 3).gt(11.1, 2) // true

```
<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.gte.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ x = new BigNumber(0.3).minus(0.2)
x.gte(0.1) // true
BigNumber(1).gte(x) // true
BigNumber(10, 18).gte('i', 36) // true

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.idiv.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ y = new BigNumber(3)
x.idiv(y) // '1'
x.idiv(0.7) // '7'
x.idiv('0.f', 16) // '5'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.integervalue.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ x.integerValue(BigNumber.ROUND_CEIL) // '124'
y = new BigNumber(-12.7)
y.integerValue() // '-13'
x.integerValue(BigNumber.ROUND_DOWN) // '-12'

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.isbignumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ BN = BigNumber.clone();
z = new BN(x)
z instanceof BigNumber // false
BigNumber.isBigNumber(z) // true

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.isequalto.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ BigNumber(255).isEqualTo('ff', 16) // true

y = new BigNumber(NaN)
y.isEqualTo(NaN) // false

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.isfinite.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ x = new BigNumber(1)
x.isFinite() // true
y = new BigNumber(Infinity)
y.isFinite() // false

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.isgreaterthan.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ x = new BigNumber(0.1)
x.isGreaterThan(BigNumber(0.3).minus(0.2)) // false
BigNumber(0).isGreaterThan(x) // false
BigNumber(11, 3).isGreaterThan(11.1, 2) // true

```

<b>Signature:</b>
Expand Down
1 change: 0 additions & 1 deletion docs/eth-connect.bignumber.isgreaterthanorequalto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ x = new BigNumber(0.3).minus(0.2)
x.isGreaterThanOrEqualTo(0.1) // true
BigNumber(1).isGreaterThanOrEqualTo(x) // true
BigNumber(10, 18).isGreaterThanOrEqualTo('i', 36) // true

```

<b>Signature:</b>
Expand Down
Loading

0 comments on commit 7ef19e7

Please sign in to comment.