Utils for JavaScript - what do you use regularly?
Dragoljub Bogićević
Posted on March 21, 2020
Recently, I started working on my own utils set of JavaScript functions that can be used on every day basis.
This is the current list (full docs can be found here):
- Compare objects
- Compare arrays
- Check if an array or an object is empty
- Make array unique
- Get min value of an array of numbers
- Get max value of an array of numbers
- Check if variable is an integer
- Create random number
- Cache function result
- Calculate how much time a function takes to run
Which functions do you use, in which cases, please comment down bellow, certainly I would consider all suggestions and add new functions as part of npm package.
Thank you for reading and all suggestions!
💖 💪 🙅 🚩
Dragoljub Bogićević
Posted on March 21, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
discuss Javascript VS TypeScript : Going Back to JavaScript and stop using TypeScript
September 8, 2023