code: function(value, inferredType) {
        if (inferredType === 'boolean') {
          return value ? '' : undefined;
        } else if (inferredType !== 'object' && inferredType !== 'function'
            && value !== undefined) {
          return value;
        }
      }
docs: convert to a string value based on the type of `inferredType`