A collection of simple DOM utilities for those who prefer a Vanilla JS approach.
This is how I use it with a Webpack bundled project. Your set-up may be different.
$ npm install vanillajs-dom --save-dev
import { parents, parent, outerHeight, scrollTop } from "vanillajs-dom";
parents(element, ".selector[data-type=foo]");
parent(element, ".selector[data-type=foo]");
outerHeight(element);
scrollTop();