Skip to content

Instantly share code, notes, and snippets.


Luke Moody lukemoody

View GitHub Profile
View utilityFunctions
* Match Height Function
* @note A helper function for setting a group of divs to the same height.
* @param {el} is the group element the height is being set
* @callback matchHeights('example_element');
export function matchHeights(el) {
// Grab divs with 'data-matchheights'
let getDivs = document.querySelectorAll(el);