Protocol Methods
Methods that enables Chronos to follow JavaScript runtime protocols
Overview
Protocol methods participate in JavaScript/runtime “protocols” or language conventions.
Available Protocol Methods
- valueOf - Enable
Numbercoercion. - toJSON - Enable
JSONserialization. - inspect - Returns a debug-friendly string representation for
console.logand Node.jsutil.inspect.
Example
playground.ts
Last updated: Fri, Jun 19, 2026 06:06:59PM (UTC)
