Skip to content

Commit

Permalink
Update and rename _map-deep-get.scss to _deep-get.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcox committed Apr 20, 2024
1 parent d1f863d commit 57e2f87
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
/// @return {*} - Desired value


@function map-deep-get($map, $keys...) {
@function deep-get($map, $keys...) {
@each $key in $keys {
$map: map-get($map, $key);
$map: map.get($map, $key);
}
@if ($map) {
@return $map;
}
@warn #{'The "' + $map + '" and "' + $key + '" are not found in the $gorko-config'};

@return null;
}
}

0 comments on commit 57e2f87

Please sign in to comment.