lib/filters/append.js
function append (value, string) {
  if (
    value === null || value === undefined || value === '' ||
    string === null || string === undefined
  ) {
    return value
  }
  return value + string
}
function append (value, string) {
  if (
    value === null || value === undefined || value === '' ||
    string === null || string === undefined
  ) {
    return value
  }
  return value + string
}
function append ( value , string ) { if ( value === null || value === undefined || value === '' || string === null || string === undefined ) { return value } return value + string }
Append the given string to the value, unless the value is empty.
@param {string} value - The value to append to
@returns {string} The appended result
Append the given string to the value unless the value is empty .