function getLatestVariableDefinition(variable) {
  return variable.defs[variable.defs.length - 1];
}
Returns the latest definition of the variable.
@param {Object} variable
@returns {Object | undefined} The latest variable definition or undefined.