// =============================================================================
// =ALEKSI - STR-APPEND
// =============================================================================
////
//// @group aleksi-strings
//// @author [Yoannis Jamar](http://yoannis.me)
//// @author [Hugo Giraudel](http://hugogiraudel.com)
//// @link https://github.com/HugoGiraudel/SassyStrings/tree/master/stylesheets/public

// =str-append( $str, $suffix )
// -----------------------------------------------------------------------------
/// Adds given suffix to the end of a string.
///
/// @param {string} $str - The string to append
/// @param {string} $suffix - The suffix string to add
///
/// @return {string} - `$str` with `$suffix` added to the front
///
/// @access public
/// @since 0.4.2

@function str-append( $str, $suffix )
{
  @if type-of($str) != "string" {
    @return throw-error('str-append():: $str must be a string, was #{inspect($str)}.');
  }

  @if type-of($suffix) != "string" {
    @return throw-error('str-append():: `$suffix` must be a string — was `#{inspect($suffix)}`');
  }

  @return '#{$str}#{$suffix}';
}