UNPKG

@jswalden/streaming-json

Version:

Streaming JSON parsing and stringification for JavaScript/TypeScript

14 lines (13 loc) 457 B
/** * Remove the fractional component from a finite (non-infinite and non-`NaN`) * number by rounding it towards zero. The sign on a truncation to +0 or -0 is * preserved. * * @see https://tc39.es/ecma262/#eqn-truncate */ export declare function Truncate(n: number): number; /** * Return the minimum supplied argument, or `NaN` if any supplied argument is * `NaN`. */ export declare const Min: (num: number, ...rest: readonly number[]) => number;