function url (strings, ...values) {
  const init = values.reduce(
    (result, value, index) => `${result}${strings[index].trim()}${encodeURIComponent(value)}`,
    '',
  )

  return `${init}${strings[strings.length - 1].trim()}`
}
/**
 * Creates a safe URL by encoding the values with encodeURIComponent
 * @param strings
 * @param values
 * @returns {string}
 */
Creates a safe URL by encoding the values with encodeURIComponent
@param strings
@param values
@returns {string}
Creates a safe URL by encoding the values with encodeURIComponent @param strings @param values @returns { string }
function url (strings, ...values) {
  const init = values.reduce(
    (result, value, index) => `${result}${strings[index].trim()}${encodeURIComponent(value)}`,
    '',
  )
  return `${init}${strings[strings.length - 1].trim()}`
}
function url ( strings , ... values ) { const init = values . reduce ( ( result , value , index ) => ` ${ result } ${ strings [ index ] . trim ( ) } ${ encodeURIComponent ( value ) } ` , '' , ) return ` ${ init } ${ strings [ strings . length - 1 ] . trim ( ) } ` }
Creates a safe URL by encoding the values with encodeURIComponent
 @param strings
 @param values
 @returns {string}
Creates a safe URL by encoding the values with encodeURIComponent @param strings @param values @returns { string }