MCPcopy
hub / github.com/formatjs/formatjs / lessThanOrEqualTo

Method lessThanOrEqualTo

packages/bigdecimal/index.ts:582–585  ·  view source on GitHub ↗
(y: BigDecimal | number | string | bigint)

Source from the content-addressed store, hash-verified

580 }
581
582 lessThanOrEqualTo(y: BigDecimal | number | string | bigint): boolean {
583 const c = this._compareTo(BigDecimal._coerce(y))
584 return c === 0 || c === -1
585 }
586
587 greaterThanOrEqualTo(y: BigDecimal | number | string | bigint): boolean {
588 const c = this._compareTo(BigDecimal._coerce(y))

Callers 3

bigdecimal.test.tsFile · 0.80
GetOperandsFunction · 0.80
findN1E1R1Function · 0.80

Calls 2

_compareToMethod · 0.95
_coerceMethod · 0.80

Tested by

no test coverage detected