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