function placeholder(input, property) {
  return input === undefined || input === '' || input === null ? property : input;
}
If the value is missing outputs the placeholder text

'' => {placeholder}
'foo' => 'foo'