maskValue function

Last updated: 2026-03-01T23:25:47.125Z

Metrics

LOC: 8 Complexity: 2 Params: 1

Signature

maskValue(value: string): : string

Source Code

function maskValue(value: string): string {
  if (value.length <= 4) return "****";
  return (
    value.slice(0, 2) +
    "*".repeat(Math.min(value.length - 4, 6)) +
    value.slice(-2)
  );
}

No outgoing dependencies.

Impact (Incoming)

graph LR maskValue["maskValue"] logAuditFill["logAuditFill"] logAuditFill -->|calls| maskValue style maskValue fill:#dbeafe,stroke:#2563eb,stroke-width:2px click maskValue "cddf00b5b286b0a8.html" click logAuditFill "221e9f6c8e5f6850.html"
SourceType
logAuditFill calls