Skip to main content Accessibility Feedback

Helper Functions

Helper functions make complicated or repetitive tasks a bit easier, and keep your code DRY (an acronym for Don’t Repeat Yourself).

Unless otherwise noted, these helper functions work in all modern browsers on desktop and mobile. You can extend support back further with polyfills.

🔥 Black Friday Sale! Today through Monday, save 50% on every pocket guide, video course, and enrollment in the Vanilla JS Academy. If you buy a pocket guide bundle or join Academy, you'll also get $436 in free bonus gifts. This sale ends Monday, so don't wait!

The Functions