"use strict";(globalThis.webpackChunk_elliemae_pui_diagnostics=globalThis.webpackChunk_elliemae_pui_diagnostics||[]).push([[6170],{116:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(758);const r={},a=n.createContext(r);function s(e){const t=n.useContext(a);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),n.createElement(a.Provider,{value:t},e.children)}},9289:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>s,metadata:()=>n,toc:()=>o});const n=JSON.parse('{"id":"api/functions/redactPii","title":"redactPii()","description":"redact PII from a Javascript object","source":"@site/docs/api/functions/redactPii.md","sourceDirName":"api/functions","slug":"/api/functions/redactPii","permalink":"/diagnostics/api/functions/redactPii","draft":false,"unlisted":false,"editUrl":"https://git.elliemae.io/platform-ui/pui-diagnostics.git/docs/api/functions/redactPii.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"parentApp()","permalink":"/diagnostics/api/functions/parentApp"},"next":{"title":"webvitals()","permalink":"/diagnostics/api/functions/webvitals"}}');var r=i(6070),a=i(116);const s={},c="redactPii()",d={},o=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"T",id:"t",level:3},{value:"Parameters",id:"parameters",level:2},{value:"data",id:"data",level:3},{value:"Returns",id:"returns",level:2}];function l(e){const t={code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"redactpii",children:"redactPii()"})}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ts",children:"function redactPii<T>(data: T): T;\n"})}),"\n",(0,r.jsx)(t.p,{children:"redact PII from a Javascript object"}),"\n",(0,r.jsx)(t.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,r.jsx)(t.h3,{id:"t",children:"T"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"T"})}),"\n",(0,r.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsx)(t.h3,{id:"data",children:"data"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"T"})}),"\n",(0,r.jsx)(t.p,{children:"Javascript object to redact PII from"}),"\n",(0,r.jsx)(t.h2,{id:"returns",children:"Returns"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"T"})}),"\n",(0,r.jsx)(t.p,{children:"redacted object"})]})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}}}]);