/// This mixin returns a value from a given map for the given key(s).
/// If the value cannot be found, it will throw an error during compilation.
///
/// @group helpers_utility
///
/// @return {string}
///
/// @example scss - Usage
///   k-map-fetch((foo: 'bar'), 'foo');
///   // 'bar'
///
///   k-map-fetch((foo: 'bar'), 'test');
///   // "test" is required in "k-module".

@function k-map-fetch($map, $key) {
  $value: map-get-deep($map, $key);
  @return k-required($value, $key);
}
