• Does a best possible effort to clean a data object from any possible PII.

    Parameters

    • data: Record<string, any>

      The data object to clean

    • cleanUpPatterns: RegExp[]

    Returns Record<string, any>

    A new object with the PII removed