Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One example I can think of is the "immer" package / the "produce" function:

https://immerjs.github.io/immer/

https://immerjs.github.io/immer/api

The API page lists numerous functions, but the bottom of the page says "In most cases, the only thing you need to import from Immer is produce".

My thought is, immer does something novel, but the vast majority of functionality can be covered in one function.

I think another problem with the "left-pad" situation is the lacking "JavaScript standard library", but that situation is improving over time, especially now that IE11 is deprecated so it's a reasonable expectation to develop against Chrome / Firefox / Safari which are actively maintained and continue to implement new JavaScript features.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: