downloadAsJson function presentation ✓ 100.0%
Last updated: 2026-03-02T13:35:57.087Z
Location
Metrics
LOC: 10
Complexity: 1
Params: 1
Coverage: 100.0% (8/8 lines, 2x executed)
Signature
downloadAsJson(entries: LogEntry[]): : void
Source Code
function downloadAsJson(entries: LogEntry[]): void {
const json = JSON.stringify(entries, null, 2);
const blob = new Blob([json], { type: "application/json" });
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = `fill-all-logs-${new Date().toISOString().slice(0, 19).replace(/:/g, "-")}.json`;
a.click();
URL.revokeObjectURL(url);
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| render | calls |