From 57e2f87746d6a983c16e0117ceaac4549dd6210d Mon Sep 17 00:00:00 2001 From: Rustie <64870518+woodcox@users.noreply.github.com> Date: Sat, 20 Apr 2024 11:02:23 +0100 Subject: [PATCH] Update and rename _map-deep-get.scss to _deep-get.scss --- src/functions/{_map-deep-get.scss => _deep-get.scss} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename src/functions/{_map-deep-get.scss => _deep-get.scss} (84%) diff --git a/src/functions/_map-deep-get.scss b/src/functions/_deep-get.scss similarity index 84% rename from src/functions/_map-deep-get.scss rename to src/functions/_deep-get.scss index 3ac91a6..51c7e19 100644 --- a/src/functions/_map-deep-get.scss +++ b/src/functions/_deep-get.scss @@ -9,9 +9,9 @@ /// @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; @@ -19,4 +19,4 @@ @warn #{'The "' + $map + '" and "' + $key + '" are not found in the $gorko-config'}; @return null; -} \ No newline at end of file +}