JSZZ
Playground
v0.1.0
Wasm: 18,386 bytes (9,171 gzipped)
Strip comments
Strip whitespaces
Transform JSX
// jszz strips type annotations, keeping byte offsets intact interface Point { x: number; y: number; } /** * Calculates the distance between two points. * @param a - The first point. * @param b - The second point. * @returns The distance between the two points. */ function distance(a: Point, b: Point): number { const dx = a.x - b.x; const dy = a.y - b.y; return Math.hypot(dx, dy); }