Skip to content

Commit

Permalink
refactor(object): use internal map.set() in the object.create() a…
Browse files Browse the repository at this point in the history
…nd `object.set()`.
  • Loading branch information
sciborrudnicki committed Sep 11, 2023
1 parent df03e46 commit 066b449
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions object/_object.create.function.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// Sass.
@use 'sass:list';
@use 'sass:map';
@use 'sass:meta';

// Object.
// Variables.
@use 'object.var' as object;

// Functions.
@use 'object.get.function' as *;

// Modules.
@use '../map';

// Status: DONE
// The `object.create()` function sets `map` type object in `object.$object` variable under `$name` key.
// @param `$object` A `map` type value to set in `object.$object` under `$name`.
Expand Down
4 changes: 3 additions & 1 deletion object/_object.set.function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
@use 'object.var' as object;

// Functions.
@use '../map/map.set.function';
@use 'object.get-key.function' as *;
@use 'object.get.function' as *;

// Modules.
@use '../map';

// Status: DONE
// The `object.set()` function sets `$value` under `$key` in object in use.
// @param `$key` A key under which `$value` is set.
Expand Down

0 comments on commit 066b449

Please sign in to comment.