Hacker GitHub

← All repos

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

Mentions per year 73 mentions · busiest year 2016 (18)
20082026
  1. …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
  2. 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…
  3. I would probably look at the lodash implementation (for JS/TS) as a complete implementation example. https://github.com/lodash/lodash/blob/8a26eb42adb303f4adc7ef...
    comment by tracker1 · 2025-08-07 · in Debounce
  4. Here's an example. This is the PR they created in lodash's GitHub repo: https://github.com/lodash/lodash/pull/5980
  5. …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
  6. …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
  7. 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…
  8. 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.…
  9. …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...
  10. …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…
  11. 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…
  12. ▲ 3
    Lodash Migrates to Bun
    story by smitop · 2023-09-16 · 3 comments
  13. The bigger news is that Lodash is migrating from Node.js to Bun: https://github.com/lodash/lodash/commit/97d4a2fe193a66f5f96d...
  14. 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...
  15. https://github.com/lodash/lodash/issues
  16. …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
  17. ▲ 4
    Lodash has had no activity for over 2 years
    story by jonkoops · 2023-07-19 · 4 comments
  18. ▲ 1
    Serious question, why does lodash.isNull exist?
    story by user3939382 · 2023-04-11 · 3 comments
  19. …recent closed PR is jdalton this year (Jan 4 '23) saying he's not looking to expand lodash [2] [1] https://github.com/lodash/lodash/graphs/contributors [2] https://github.com/lodash/lodash/pull/5575#issuecomment-1371...
    comment by kipple · 2023-03-08 · in No Lodash
  20. …Now the lodash package on github, the latest release is listed as v4.0.0 from 2016: https://github.com/lodash/lodash/releases There have been no commits to the main branch on github in almost 2 years: https://github.com/lodash/lodash/commit…
    comment by domh · 2023-03-07 · in No Lodash
  21. …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:…
  22. …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…
  23. …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
  24. …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
  25. …one: https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-op... Combine it with Lodash FP: https://github.com/lodash/lodash/wiki/FP-Guide
  26. 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
  27. 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
  28. …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)
  29. …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)
  30. ▲ 5
    Tell HN: Bunch of NPM packages are broken because of broken lodash release
    story by european321 · 2020-07-08 · 0 comments
  31. For additional context: https://github.com/lodash/lodash/pull/4745
  32. This is the one character commit that they used in identifying me: https://github.com/lodash/lodash/pull/1036
  33. 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.…
  34. …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
  35. …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...
  36. …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
  37. For more fun with FP checkout lodash fp https://github.com/lodash/lodash/wiki/FP-Guide Also read about using flow over chain
  38. …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...
  39. ▲ 2
    JavaScript Functional Programming with lodash
    story by candlefather · 2016-12-20 · 0 comments
  40. Ah, lodash and lodash/fp are slightly different packages. https://github.com/lodash/lodash/wiki/FP-Guide
  41. If you dig immutable, auto-curried, data-last methods there's also lodash/fp modules – https://github.com/lodash/lodash/wiki/FP-Guide
  42. lodash has that ability from a sub-module "lodash/fp": https://github.com/lodash/lodash/wiki/FP-Guide
  43. 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...
  44. You also dig Lodash v4's FP modules https://github.com/lodash/lodash/wiki/FP-Guide
  45. You might dig https://github.com/lodash/lodash/wiki/FP-Guide
  46. Lodash v4 has support for FP syntax/modules – https://github.com/lodash/lodash/wiki/FP-Guide
  47. lodash is great and heavily documented. [0] https://github.com/lodash/lodash/
  48. ▲ 1
    Lodash/fp
    story by killahpriest · 2016-04-15 · 0 comments
  49. …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
  50. 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?