Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Recreating Popular JavaScript Utility Methods from Lodash

via egghead.io

Overview

Lodash is a collection of utilities that have become a staple of modern web development. This collection will show you how to re-create its most common methods using simple JavaScript techniques available in any modern web browser. In addition to re-building tools like .merge, .get and _.debounce from scratch you will also learn how to replace them completely in some cases with modern syntax such as optional chaining, nullish coalescing and Object.fromEntries.
This collection should interest the following groups:
Those who want to better understand common JavaScript patterns
Engineers who want to reduce their dependence on Lodash (for performance or other reasons)
Candidates preparing for a technical job interview (where it is common to be asked how to implement some of these methods).

Syllabus

  • Build lodash.merge from Scratch
  • Build lodash.debounce from Scratch
  • Extending debounce with a maxWait Option
  • Build lodash.get from Scratch
  • Replace lodash.get with Optional Chaining Syntax
  • Build lodash.throttle from Scratch
  • Build lodash.pick from Scratch
  • Build lodash.omit from Scratch with forEach and for...in
  • Build lodash.omitBy and lodash.pickBy with Object.fromEntries

Taught by

Jamund Ferguson

Reviews

5 rating at egghead.io based on 1 rating

Start your review of Recreating Popular JavaScript Utility Methods from Lodash

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.