Guest User

Untitled

a guest
Jul 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. const equalHeight = selectors => {
  2. selectors.forEach(s => {
  3. const group = document.querySelectorAll(s);
  4.  
  5. if (group.length) {
  6. const h = Array.prototype.map.call(group, x => $(x).height()).sort().pop();
  7.  
  8. $(group).each((i, e) => $(e).height(h));
  9. }
  10. });
  11. };
Add Comment
Please, Sign In to add comment