©  Ray Nicholus 2016

Ray Nicholus, Beyond jQuery, 10.1007/978-1-4842-2235-5_12

12. Common JavaScript Utility Functions

Ray Nicholus

(1)Johnson Creek, Wisconsin, USA

Here in chapter 12, I plan to match jQuery’s utility functions1 against the native APIs defined in the ECMAScript specification. Most of the code in this chapter will work both in the browser and on the server (with the notable exception of DOMParser and any references to window or document in examples). In modern browsers, jQuery is unnecessary most of the time. But even where jQuery saves a few keystrokes, it’s important to be able to roll your own utility function, even if you do choose to pull in a library for some of the more complex and lesser-supported features. After all, understanding ...

Get Beyond jQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.