MCPcopy
hub / github.com/formatjs/formatjs / toJSON

Method toJSON

packages/bigdecimal/index.ts:630–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

628 // --- Conversion ---
629
630 toJSON(): string {
631 return this.toString()
632 }
633
634 toNumber(): number {
635 if (this._special === SpecialValue.NAN) return NaN

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected