The JavaScript snippet collection contains a wide variety of ES6 helper functions. It includes helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
Learn the differences between JavaScript ES6 arrow functions and regular functions and how they affect event listener callbacks.
JavaScript, Browser · Jun 12, 2021
Learn different ways to memoize function calls in JavaScript as well as when to use memoization to get the best performance results.
JavaScript, Function · Nov 7, 2021
Boolean traps can cause readability and maintainability issues in your code. Learn what they are, how to spot and fix them in this article.
JavaScript, Function · Jul 11, 2021
Asynchronously looping over arrays in JavaScript comes with a few caveats you should watch out for.
JavaScript, Array · Jun 12, 2021
Learn how to use JavaScript ES6 generators and iterators to iterate over ranges of numbers.
JavaScript, Function · Jun 12, 2021
Learn everything you need to know about higher-order functions with this short guide and level up your programming skills.
JavaScript, Function · Nov 7, 2021
Runs a function in a separate thread by using a Web Worker.
JavaScript, Browser · Oct 22, 2020
JavaScript's arrow functions are seemingly the same as regular functions, but there are some important differences you need to know.
JavaScript, Function · Oct 17, 2021
JavaScript uses callback functions quite a lot. From event listeners to asynchronous code, they're an invaluable tool you need to master.
JavaScript, Function · Oct 3, 2021
Closures are used frequently, yet often misunderstood. Understanding them in depth is crucial to be able to write clean, maintainable code.
JavaScript, Function · May 18, 2022
Learn everything you need to know about promises and asynchronous JavaScript with this handy cheatsheet.
JavaScript, Function · Jun 12, 2021
Deeply merges two objects, using a function to handle keys present in both.
JavaScript, Object · Jul 25, 2021
Converges a list of branching functions into a single function and returns the result.
JavaScript, Function · Jan 7, 2021
JavaScript arrow functions are a very useful tool to learn and master. Here's a complete introduction to everything you need to know.
JavaScript, Function · Jun 12, 2021
JavaScript's Boolean function can be used for truth-checking data among other things. Learn how to use it and level up your code today.
JavaScript, Function · Jun 12, 2021