Show HN: SuperUtilsPlus – A Modern Alternative to Lodash

Hey HN!

After years of wrestling with Lodash's quirks and bundle size issues, I decided to build something better. SuperUtilsPlus is my attempt at creating the utility library I wish existed.

What makes it different?

TypeScript-first approach: Unlike Lodash's retrofitted types, I built this from the ground up with TypeScript. The type inference actually works the way you'd expect it to.

Sensible defaults: Some of Lodash's decisions always bugged me. Like isObject([]) returning true - arrays aren't objects in my mental model. Or isNumber(NaN) being true when NaN literally stands for "Not a Number". I fixed these footguns.

Modern JavaScript: Built for ES2020+ with proper ESM support. No more weird CommonJS/ESM dance. Actually tree-shakable: You can import from specific modules (super-utils/array, super-utils/object) for optimal bundling. Your users will thank you.

The best parts IMO:

compactNil() - removes only null/undefined, leaves falsy values like 0 and false alone

differenceDeep() - array difference with deep equality (surprisingly useful)

Better random utilities with randomUUID() and randomString()

debounce() that actually works how you expect with proper leading/trailing options

Also genuinely curious - what are your biggest pain points with utility libraries? Did I miss any must-have functions?


Comments URL: https://news.ycombinator.com/item?id=44080808

Points: 32

# Comments: 14

https://github.com/dhaxor/super-utils-plus

Vytvorené 1mo | 24. 5. 2025, 15:30:14


Ak chcete pridať komentár, prihláste sa

Ostatné príspevky v tejto skupine

Ask HN: Who wants to be hired? (July 2025)

Share your information if you are looking for work. Please use this format:

  Location:
  Remote:
  Willing to relocate:
  Technologies:
  Résumé/CV:
  Email:
Please onl
1. 7. 2025, 21:20:21 | Hacker news
Show HN: Core – open source memory graph for LLMs – shareable, user owned

I keep running in the same problem of each AI app “remembers” me in its own silo. ChatGPT knows my project details, Cursor forgets them, Claude starts from zero… so I end up re-explaining myself d

1. 7. 2025, 21:20:19 | Hacker news
Show HN: Arch-Router – 1.5B model for LLM routing by preferences, not benchmarks

Hi HN — we're the team behind Arch (https://github.com/katanemo/archgw), an open-source proxy for LLMs written in Rust. Today we're releasing Arch-

1. 7. 2025, 21:20:17 | Hacker news
1KB JavaScript Demoscene Challenge Just Launched

I just launched JS1024 — a creative coding challenge with a strict limit: 1024 bytes of JavaScript.

No libraries. No frameworks. Just raw code.

You can submit visual effects, generative art, t

1. 7. 2025, 21:20:15 | Hacker news