MCPcopy Create free account
hub / github.com/microsoft/SandDance / cleanInsight

Function cleanInsight

packages/powerbi/src/cleanInsight.ts:6–10  ·  view source on GitHub ↗
(insight: SandDance.specs.Insight)

Source from the content-addressed store, hash-verified

4import { SandDance } from '@msrvida/sanddance-explorer';
5
6export function cleanInsight(insight: SandDance.specs.Insight) {
7 delete insight.size;
8 delete insight.filter;
9 visit(insight);
10}
11
12function visit(o: object) {
13 const props = Object.keys(o);

Callers 1

persistMethod · 0.90

Calls 1

visitFunction · 0.70

Tested by

no test coverage detected