God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: SuperUtilsPlus - A Modern Alternative to Lodash https://ift.tt/a6TPjBJ
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? https://ift.tt/h7T5u9f May 24, 2025 at 03:03AM
Subscribe to:
Post Comments (Atom)
Show HN: WineBar: A yet another Wine prefix manager, with Asahi Linux support https://ift.tt/yTUc2KC
Show HN: WineBar: A yet another Wine prefix manager, with Asahi Linux support My daily driver is a Macbook Air M2 running Linux - Fedora Asa...
-
A word of prayer for you this month of July. God bless you abundantly, Amen. Fr. Kris Ikegwuonu, MDM. (+234 803 435 7990)
-
Show HN: Applesoft BASIC editor with example programs This is an Applesoft BASIC editor that extracts and updates code into a live Apple II ...
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
No comments:
Post a Comment