function sanitizeAttribute(value) {
  // If null or undefined
  if (value == null) return
  if (Array.isArray(value)) {
    return value.filter(notEmpty).map((val) => val.toString())
  }
  // @TODO guard against null here
  return isNullOrUndef(value) ? value : value.toString()
}
Ensure value is a string or array of strings.

@param {mixed} value