code: function resolveLinkVariables (links, record) {
      // handle array
      if (Array.isArray(links)) {
          _.each(links, link => {
              resolveLinkVariablesObject(link, record)
          })
      }
      // handle object
      else if (typeof links === 'object' && links) {
          resolveLinkVariablesObject(links, record)
      }
  }
docs: @function resolveLinkVariables
  
  take a list of links and resolve any variables in the href or title with
  values from passed in object.
  
  variables must be in the ${variable.name} format and are retrieved from the
  passed in object using lodash _.get.
  
  original array values are modified
  
  @param {array|object} links
  @param {object} record