lodash/lodash
View on GitHub ↗ ★ 61,275 JavaScript
A modern JavaScript utility library delivering modularity, performance, & extras.
73 mentions on Hacker News by 63 people: 11 stories, 62 comments · first 2012-04-23 · latest 2025-10-07
20082026
-
…get their patch landed. [^0]: https://www.mozilla.org/en-US/about/governance/policies/comm... [^1]: https://github.com/lodash/lodash/pull/6014
comment by csmantle · 2025-10-07 · in Being blocked from contributing to lodash -
Let’s start with something simple, like difference(). https://github.com/lodash/lodash/blob/main/dist/lodash.js#L7... So you also need to copy isArrayLikeObject, baseDifference and baseFlatten. For baseDifference, you also need to copy…
comment by cluckindan · 2025-09-17 · in Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised -
Here's an example. This is the PR they created in lodash's GitHub repo: https://github.com/lodash/lodash/pull/5980
comment by ronyclau · 2025-05-16 · in Huawei is spamming open source community for its Harmony ecosystem (See Comment) -
…of approaches and vibrancy in the community. Lodash has had an implementation for a while: https://github.com/lodash/lodash/blob/0843bd46ef805dd03c0c8d... . (Edit, found better example.) Structural pattern matching can be very elegant and…
comment by odyssey7 · 2023-12-31 · in Bun, JavaScript, and TCO -
…Lodash functions, so importing a single function actually imports half of Lodash under the hood: https://github.com/lodash/lodash/blob/main/src/.internal/bas...
comment by jwalton · 2023-12-22 · in Deep cloning objects in JavaScript -
It's fairly easy to roll your own. An example implementation of groupBy in lodash, for example: https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L939... . More broadly, this is an example of a utility function for organizing data in…
comment by tibbar · 2023-12-19 · in TC39: Add Object.groupBy and Map.groupBy -
There’s more discussion in this issue: https://github.com/lodash/lodash/issues/5719 Frankly I commend the author. If you’re maintaining one of the most used open source packages, I think it must be overwhelming to get so much feedback.…
comment by haburka · 2023-09-18 · in Lodash just declared issue bankruptcy and closed every issue and open PR -
…which is to iterate with a for-in loop and return on the first iteration, so it is O(1). [1]: https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L114...
comment by mediumdeviation · 2023-09-17 · in Lodash just declared issue bankruptcy and closed every issue and open PR -
…it easier to construct powerful functions. it was separate from the core, but based heavily on it. https://github.com/lodash/lodash/wiki/FP-Guide at the time, nothing was settled. we were in a pioneering mode of building; we didn't know…
comment by jauntywundrkind · 2023-09-16 · in Lodash just declared issue bankruptcy and closed every issue and open PR -
https://github.com/lodash/lodash/wiki/FP-Guide Basically flipping around the args in a function and returning a "curried" function call. So instead of _.map(["1"], parseInt) it's the other way around, _.map(parseInt, ["1"]) That way you…
comment by eddythompson80 · 2023-09-16 · in Lodash just declared issue bankruptcy and closed every issue and open PR -
▲ 3
Lodash Migrates to Bunstory by smitop · 2023-09-16 · 3 comments
-
The bigger news is that Lodash is migrating from Node.js to Bun: https://github.com/lodash/lodash/commit/97d4a2fe193a66f5f96d...
comment by smitop · 2023-09-16 · in Lodash just declared issue bankruptcy and closed every issue and open PR -
They tagged 363 issues with "issue bankruptcy" and closed them: https://github.com/lodash/lodash/issues?q=is%3Aissue+is%3Acl... Same for 325 PRs: https://github.com/lodash/lodash/pulls?q=is%3Apr+is%3Aclosed...
comment by omnibrain · 2023-09-16 · in Lodash just declared issue bankruptcy and closed every issue and open PR -
https://github.com/lodash/lodash/issues
comment by Mil0dV · 2023-07-19 · in Lodash has had no activity for over 2 years -
…of modern web development has moved to ESM, for Lodash this is a problem, read more about it here: https://github.com/lodash/lodash/issues/5107
comment by jonkoops · 2023-07-19 · in Lodash has had no activity for over 2 years -
▲ 4
Lodash has had no activity for over 2 yearsstory by jonkoops · 2023-07-19 · 4 comments
-
▲ 1
Serious question, why does lodash.isNull exist?story by user3939382 · 2023-04-11 · 3 comments
-
…in its template function. It’s since been patched, and the conversation unfortunately deleted - https://github.com/lodash/lodash/pull/4518 Here’s two real world examples of turning a prototype pollution into an RCE:…
comment by brasetvik · 2022-12-29 · in ReDoS “vulnerabilities” and misaligned incentives -
…Looks like filter builds a new array, and so does map? And both while -loops over the entire input? https://github.com/lodash/lodash/blob/master/filter.js https://github.com/lodash/lodash/blob/master/map.js With a quick search I found…
comment by e12e · 2022-01-29 · in A pipe operator for JavaScript: introduction and use cases -
…and efficient (no need to actually use the library, do include the LICENSE somewhere though): https://github.com/lodash/lodash/blob/master/isObject.js But depends on your needs, and you can also attach a typeguard to it.
comment by presentation · 2021-10-12 · in Tricks I wish I knew when I learned TypeScript -
…its utilities: var array = require('lodash/array'); var object = require('lodash/fp/object'); https://github.com/lodash/lodash
comment by phist_mcgee · 2021-08-01 · in Tree Shaking -
…one: https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-op... Combine it with Lodash FP: https://github.com/lodash/lodash/wiki/FP-Guide
comment by de_keyboard · 2021-07-09 · in Functools – The Power of Higher-Order Functions in Python -
Yes, you got it, Fischer-Yates shuffle via lodash. Here's their implementation: https://github.com/lodash/lodash/blob/master/shuffle.js
comment by TheMiddleMan · 2021-06-01 · in Virtual deck of cards using just a browser -
Really, lodash was a fork of underscore, not a reimplementation. The git history shows it. https://github.com/lodash/lodash/commits/0.1.0?after=e0971cd...
comment by cowsandmilk · 2021-05-25 · in Use native context menus on Mac OS -
…if statements, and what looks like a NaN check using strict equality if you want your mind blown. https://github.com/lodash/lodash/blob/86a852fe763935bb64c125...
comment by beirut_bootleg · 2020-08-20 · in Math.min(Math.max(num, min), max) -
…implementation much more complex. _.clamp(input: number, lower?: number, upper: number): number; https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb7...
comment by STRML · 2020-08-20 · in Math.min(Math.max(num, min), max) -
▲ 5
Tell HN: Bunch of NPM packages are broken because of broken lodash releasestory by european321 · 2020-07-08 · 0 comments
-
For additional context: https://github.com/lodash/lodash/pull/4745
comment by atarian · 2020-07-07 · in NPM advisory for lodash: Consider using a different package -
This is the one character commit that they used in identifying me: https://github.com/lodash/lodash/pull/1036
comment by soygul · 2020-06-26 · in Responding to Harvard's Survey Request on My Open-Source Contributions [video] -
JavaScript isn't a functional language itself, but you can use a functional library like lodash/fp ( https://github.com/lodash/lodash/wiki/FP-Guide ) on top of it to get all that lovely functional goodness in your frontend and node code.…
comment by onion2k · 2019-10-17 · in Why Isn't Functional Programming the Norm? [video] -
…number of open issues at 0. Any issues get dealt with at record speed, it's quite a sight to see. https://github.com/lodash/lodash/issues
comment by bsandert · 2018-09-21 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
…even has it aliased for ramda. The artity for certain functions might be different I didn’t check. https://github.com/lodash/lodash/commit/6b2645b3106b0ed9ebec...
comment by Rick-Butler · 2018-05-12 · in JavaScript- Lodash vs Js function vs. for vs. for each -
…http://jsben.ch/W0ciO (naive implementation, but covers 90% of uses, see lodash for the full mess: https://github.com/lodash/lodash/blob/master/.internal/baseC... )
comment by ricardobeat · 2018-01-25 · in Deep-copying in JavaScript -
For more fun with FP checkout lodash fp https://github.com/lodash/lodash/wiki/FP-Guide Also read about using flow over chain
comment by jaunkst · 2017-08-03 · in Javascript Arrays and Functional Programming -
…why lodash doesn't use a lambda. Parsing that path seems silly. It could just be a try on a lambda https://github.com/lodash/lodash/blob/master/.internal/baseG...
comment by glibgil · 2017-03-13 · in Idx: Easily access deeply nested nullable fields in JavaScript -
▲ 2
JavaScript Functional Programming with lodashstory by candlefather · 2016-12-20 · 0 comments
-
Ah, lodash and lodash/fp are slightly different packages. https://github.com/lodash/lodash/wiki/FP-Guide
comment by codecurve · 2016-12-03 · in Zaphod: Clojure's API for JavaScript's Data Structures -
If you dig immutable, auto-curried, data-last methods there's also lodash/fp modules – https://github.com/lodash/lodash/wiki/FP-Guide
comment by jdd · 2016-11-09 · in A small dive into, and rejection of, Elm -
lodash has that ability from a sub-module "lodash/fp": https://github.com/lodash/lodash/wiki/FP-Guide
comment by lloyd-christmas · 2016-10-22 · in Ask HN: Why is everything in JavaScript changing so fast? -
BTW there's lodash/fp modules too: https://github.com/lodash/lodash/wiki/FP-Guide https://simonsmith.io/dipping-a-toe-into-functional-js-with-... https://medium.com/@jdalton/just-a-heads-up-the-lazy-js-benc...
comment by jdd · 2016-07-17 · in Just: A library of dependency-free JS utilities that do just do one thing -
You also dig Lodash v4's FP modules https://github.com/lodash/lodash/wiki/FP-Guide
comment by jdd · 2016-07-02 · in Lists of JavaScript methods which you can use natively -
You might dig https://github.com/lodash/lodash/wiki/FP-Guide
comment by jdd · 2016-07-01 · in Lists of JavaScript methods which you can use natively -
Lodash v4 has support for FP syntax/modules – https://github.com/lodash/lodash/wiki/FP-Guide
comment by jdd · 2016-07-01 · in Lists of JavaScript methods which you can use natively -
lodash is great and heavily documented. [0] https://github.com/lodash/lodash/
comment by TheAceOfHearts · 2016-05-01 · in Ask HN: What are examples of GitHub repositories with high code quality? -
▲ 1
Lodash/fpstory by killahpriest · 2016-04-15 · 0 comments
-
…nice if you could import modules directly from HTTP sources, like Go. For example: import _ from package 'github.com/lodash/lodash/tree/4.8.2'; import $ from package 'jquery.com/version/2.2.0'; Your browser would make the OOB requests and…
comment by tomphoolery · 2016-04-07 · in React v15.0 -
Lodash is modular ( https://github.com/lodash/lodash/tree/4.7.0-npm ) and also provides per method packages ( https://www.npmjs.com/browse/keyword/lodash-modularized ) like padStart ( https://www.npmjs.com/package/lodash.padstart )
comment by jdd · 2016-04-01 · in LeftPad and Go: can tooling help?