Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 26, 2021
1 parent 98a0b73 commit 6c03417
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/system/footer/shared_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,19 @@ const canRemoveDimension = function ({
index,
}) {
const { length } = systems.filter((system) =>
isReducibleSystem({ system, dimensionsArray, index, dimensionName }),
dimensionsArrayMatches({ system, dimensionsArray, index, dimensionName }),
)
return length === dimensionsArray.length
}

const isReducibleSystem = function ({
const dimensionsArrayMatches = function ({
system,
dimensionsArray,
index,
dimensionName,
}) {
return dimensionsArray.some((dimensions, indexB) =>
isReducibleDimensions({
dimensionsMatches({
system,
dimensions,
index,
Expand All @@ -165,15 +165,15 @@ const isReducibleSystem = function ({
)
}

const isReducibleDimensions = function ({
const dimensionsMatches = function ({
system,
dimensions,
index,
indexB,
dimensionName,
}) {
return Object.entries(dimensions).every(([dimensionNameB, dimensionValueB]) =>
isReducibleDimension({
dimensionMatches({
system,
index,
indexB,
Expand All @@ -184,7 +184,7 @@ const isReducibleDimensions = function ({
)
}

const isReducibleDimension = function ({
const dimensionMatches = function ({
system,
index,
indexB,
Expand Down

0 comments on commit 6c03417

Please sign in to comment.