removeDatasetEntry function exported ✓ 100.0%
Last updated: 2026-02-24T21:07:57.500Z
Metrics
LOC: 5
Complexity: 1
Params: 1
Coverage: 100.0% (3/3 lines, 1x executed)
Signature
removeDatasetEntry(id: string): : Promise<void>
Summary
Removes an entry by id.
Source Code
export async function removeDatasetEntry(id: string): Promise<void> {
const existing = await getDatasetEntries();
const updated = existing.filter((e) => e.id !== id);
await chrome.storage.local.set({ [RUNTIME_DATASET_KEY]: updated });
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| getDatasetEntries | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| handle | uses |