/// Never Google a unicode value for generated content again!
///
/// @author Kendrick Arnett
///
/// @param $character - The name of the character.
///
/// @example scss - unicode function
///   unicode(right-chevron)
///   // '\2039'
@function unicode($character: '') {
  $style: to_lower_case($character);
  $characters: (
    newline:        '\000a',
    nbsp:           '\00a0',
    en-dash:        '\2013',
    em-dash:        '\2014',
    horizontal-bar: '\2015',
    dagger:         '\2020',
    double-dagger:  '\2021',
    bullet:         '\2022',
    ellipsis:       '\2026',
    left-chevron:   '\2039',
    right-chevron:  '\203a',
    multiplication-sign: '\00d7',
    times:               '\00d7'
  );

  @if map-has-key($characters, $character) {
    @return map-get($characters, $character);
  }
  @else {
    @error 'Character `#{$character}` does not exist in the map.';
  }
}
