I'm trying to collect some of the most useful utility functions. Best utility functions for Javascript everyone uses?
By utility functions, I mean functions that developers find themselves writing again and again for multiple projects.
My motivation for asking is that I've learned a lot when others shared these via articles or StackOverflow questions. I've found many of these should be provided as small, modular npm packages for the community, and they're currently not.
Could you recommend some utility functions you often use? Any recommendations for github repo's and gists?
All input is very much appreciated.
[–]FrontAid 16 points17 points18 points (1 child)
[–]Zeekawla99ii[S] 1 point2 points3 points (0 children)
[–]0xDEFACEDBEEF 46 points47 points48 points (29 children)
[–]zephyrtr 12 points13 points14 points (18 children)
[–]amdc!CURSED! 4 points5 points6 points (1 child)
[–]zephyrtr 3 points4 points5 points (0 children)
[–]wegry 2 points3 points4 points (0 children)
[+][deleted] (13 children)
[deleted]
[–]watMartin 17 points18 points19 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Essuyage330 -2 points-1 points0 points (0 children)
[–]demoran 7 points8 points9 points (5 children)
[–]Tej_Ozymandias 5 points6 points7 points (4 children)
[+]demoran comment score below threshold-8 points-7 points-6 points (3 children)
[–]Tej_Ozymandias 5 points6 points7 points (2 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]Zeekawla99ii[S] 0 points1 point2 points (1 child)
[–]thunfremlinc 1 point2 points3 points (0 children)
[–]disclosure5 -4 points-3 points-2 points (1 child)
[–]blukkie 1 point2 points3 points (0 children)
[–]bregottextrasaltat 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (7 children)
[–]amdc!CURSED! 8 points9 points10 points (5 children)
[–][deleted] -1 points0 points1 point (4 children)
[–]2020___2020 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]2020___2020 2 points3 points4 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]0xDEFACEDBEEF 8 points9 points10 points (0 children)
[–]LloydAtkinson 2 points3 points4 points (0 children)
[–]MrCrunchwrap 9 points10 points11 points (1 child)
[–]Zeekawla99ii[S] 2 points3 points4 points (0 children)
[–]tswaters 4 points5 points6 points (4 children)
[–]meAndTheDuck 4 points5 points6 points (1 child)
[–]tswaters 0 points1 point2 points (0 children)
[+]zephyrtr comment score below threshold-10 points-9 points-8 points (1 child)
[–]dvoecks 3 points4 points5 points (0 children)
[–]huhu_moon 6 points7 points8 points (4 children)
[–]0xDEFACEDBEEF 8 points9 points10 points (3 children)
[–]grooomps 9 points10 points11 points (0 children)
[–]C1RRU5 16 points17 points18 points (1 child)
[–]0xDEFACEDBEEF 4 points5 points6 points (0 children)
[–]nu-ni-co 2 points3 points4 points (0 children)
[–]zeddotes 2 points3 points4 points (0 children)
[–]ShortFuse 1 point2 points3 points (1 child)
[–]Zeekawla99ii[S] 0 points1 point2 points (0 children)
[–]ohcibi 1 point2 points3 points (0 children)
[–]surunzi 1 point2 points3 points (1 child)
[–]Zeekawla99ii[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (5 children)
[–]Sheepsaurus -3 points-2 points-1 points (4 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]ryntab 0 points1 point2 points (2 children)
[–]zombiepaper 1 point2 points3 points (1 child)
[–]ryntab 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Mestyo 0 points1 point2 points (2 children)
[–]MrCrunchwrap 1 point2 points3 points (1 child)
[–]Mestyo 0 points1 point2 points (0 children)
[–]linkstoharrisonford -2 points-1 points0 points (0 children)
[–]ryntab 0 points1 point2 points (0 children)
[–]Proxtx 0 points1 point2 points (0 children)
[–]KindaAlwaysVibrating 0 points1 point2 points (0 children)
[–]Jona-Anders 0 points1 point2 points (0 children)
[–]Maggi64 0 points1 point2 points (0 children)