Just an ongoing collection of JS utils I commonly use on projects. Initially, this was to aid in my withdraw from Jquery 🤗
The methods are wrapped in an function expression to provide some encapsulation.
So, you access methods like Util.methodName()
Util.forEach ( items, function (index, item) {
item.addEventListener('click', function(e) {
e.preventDefault();
...
});
});