code: function (objectPath) {
              var levels = objectPath.split('.');
              var currentValue = values;
  
              if (levels.length > 0) {
                for (var i = 0; i < levels.length; i++) {
                  currentValue = currentValue[levels[i]];
                }
  
                return currentValue
              }
  
              return undefined
            }
docs: Helper function which loops trought the object to get a nested attribute value.