docs: function setNestedValue(data, field, value) {
          var fieldParts = _.isArray(field) ? field : field.split('.');
  
          // if no nesting, just set the value
          if (fieldParts.length === 1) {
              data[field] = _.isString(value) ? value.trim() : value;
              return;
          }
  
          // make sure the parent value exists
          data[fieldParts[0]] = data[fieldParts[0]] || {};
  
          // recursively call to go down a level
          setNestedValue(data[fieldParts[0]], fieldParts.slice(1, fieldParts.length), value);
      }