/**
 * Get value for provided keys of map nested in map
 *
 * Example:
 * $config: (a: (b: (c: d)));
 * @debug nested-map-get($config, a, b, c); // d
 */
@function nested-map-get($map, $keys...) {
  @each $key in $keys {
    $map: map-get($map, $key);
  }

  @return $map;
}
