MCPcopy Create free account
hub / github.com/dailydotdev/apps / reduced

Function reduced

packages/shared/src/hooks/useDomPurify.ts:38–45  ·  view source on GitHub ↗
(keys: (keyof T)[])

Source from the content-addressed store, hash-verified

36 }, []);
37
38 const reduced = (keys: (keyof T)[]) =>
39 keys.reduce(
40 (result, key) => ({
41 ...result,
42 [key]: purify?.sanitize?.(obj[key]) ?? defaultValue?.[key] ?? '',
43 }),
44 { isReady: !!purify } as UseObjectPurify<T>,
45 );
46
47 return useMemo(() => {
48 if (filters.length === 0) {

Callers 2

mockMatchMediaFunction · 0.85
useObjectPurifyFunction · 0.85

Calls

no outgoing calls

Tested by 1

mockMatchMediaFunction · 0.68