Skip to content

Commit

Permalink
feat(shs-5693): remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Nov 27, 2024
1 parent 3f5fe06 commit e3c1552
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ const equalHeightGrid = (elements) => {
// Create array with all of the heights of each element
const elementHeights = Array.prototype.map.call(elements, (el) => el.scrollHeight);

// Create array with _unique_ height values
// const uniqueHeights = elementHeights.filter((height, index, array) => {
// return array.indexOf(height) == index;
// });

return new Promise((resolve) => {
const maxHeight = Math.max.apply(null, elementHeights);
const tallestElementIndex = elementHeights.indexOf(maxHeight);
Expand Down

0 comments on commit e3c1552

Please sign in to comment.