You-Dont-Need-Lodash-Underscore
List of JavaScript methods which you can use natively + ESLint Plugin
A reference guide showing which Lodash and Underscore JavaScript functions can be replaced with plain built-in JavaScript, plus an ESLint plugin that flags these replaceable calls automatically in your code.
Lodash and Underscore are popular JavaScript utility libraries that developers add to their projects to handle common tasks like filtering arrays, sorting collections, or manipulating strings. The problem is that modern JavaScript — specifically ES5 and ES6 — has quietly added many of these same capabilities as built-in, native features that don't require any external library at all.
This project is a reference guide that shows, side by side, which Lodash or Underscore functions can simply be replaced with plain JavaScript that already ships in the browser. Instead of importing a library to do something like find an item in an array, you can often use a native method that does the same thing with no extra dependency. The guide covers arrays, collections, functions, strings, objects, and more.
It also includes an ESLint plugin — a code analysis tool you can add to your JavaScript project — that automatically flags spots in your code where you're using a Lodash or Underscore function that has a built-in native alternative. You install it via npm and configure it once, and it points out where you can simplify.
You'd reach for this when auditing a project to reduce its dependency footprint, when onboarding to a codebase that heavily uses these libraries, or when deciding whether to add them in the first place. The tech stack is JavaScript, with ESLint as the tooling layer.
Where it fits
- Audit an existing project to remove unnecessary Lodash or Underscore imports and shrink the bundle size.
- Add the ESLint plugin to automatically flag Lodash functions that have native JavaScript replacements.
- Learn which modern JavaScript array, string, and object methods make utility libraries unnecessary.
- Onboard to a codebase that uses Lodash heavily and understand what each function does natively.