Lightweight Utility Object

1 · T.J. Fogarty · July 25, 2015, 11 p.m.
I’m working on a little project, and it’s fairly lightweight. I ended up creating a JavaScript object with a few functions to help with the most common tasks, e.g. add class, toggle class, select element… It’s just a collection assembled from You Might Not Need jQuery. Example usage: U.ready(function() { console.log('Ready to go!'); }); I’d usually have this exported as a separate module using Browserify or ES2015. /** * Utilities * see http://youmightnotneedjquery....