Replace Parameter with Query

refactorgram

availableVacation(anEmployee, anEmployee.grade);

function availableVacation(anEmployee, grade) {
  // calculate vacation...

image/svg+xml

availableVacation(anEmployee)

function availableVacation(anEmployee) {
  const grade = anEmployee.grade;
  // calculate vacation...

inverse of Replace Query with Parameter

aliases Replace Parameter with Method