{"by":"dhax_or","descendants":75,"id":44080808,"kids":[44081126,44081543,44081397,44081090,44081059,44080809,44083038,44083041,44082390,44082258,44113531,44081922,44081479,44081438,44081352,44081496,44081901,44081459,44081047,44081847],"score":91,"text":"Hey HN!<p>After years of wrestling with Lodash&#x27;s quirks and bundle size issues, I decided to build something better. SuperUtilsPlus is my attempt at creating the utility library I wish existed.<p>What makes it different?<p>TypeScript-first approach: Unlike Lodash&#x27;s retrofitted types, I built this from the ground up with TypeScript. The type inference actually works the way you&#x27;d expect it to.<p>Sensible defaults: Some of Lodash&#x27;s decisions always bugged me. Like isObject([]) returning true - arrays aren&#x27;t objects in my mental model. Or isNumber(NaN) being true when NaN literally stands for &quot;Not a Number&quot;. I fixed these footguns.<p>Modern JavaScript: Built for ES2020+ with proper ESM support. No more weird CommonJS&#x2F;ESM dance.\nActually tree-shakable: You can import from specific modules (super-utils&#x2F;array, super-utils&#x2F;object) for optimal bundling. Your users will thank you.<p>The best parts IMO:<p>compactNil() - removes only null&#x2F;undefined, leaves falsy values like 0 and false alone<p>differenceDeep() - array difference with deep equality (surprisingly useful)<p>Better random utilities with randomUUID() and randomString()<p>debounce() that actually works how you expect with proper leading&#x2F;trailing options<p>Also genuinely curious - what are your biggest pain points with utility libraries? Did I miss any must-have functions?","time":1748091816,"title":"Show HN: SuperUtilsPlus – A Modern Alternative to Lodash","type":"story","url":"https://github.com/dhaxor/super-utils-plus"}