Function: trimToNull()
trimToNull(
value):string|null
Trim value and return null for non-strings, undefined, or
strings that are empty after trimming. Lets call sites collapse the
common
typeof v === "string" && v.trim() ? v.trim() : nulldance into a single helper. Useful for HTTP header / query / form
extractors where downstream code wants string | null to drive a
cheap ?? / if (x) cascade.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”string | null