Commonly Used JavaScript Utility Functions
Ryan GanPublished on Sep 20, 2024
In this post, I will introduce 9 JavaScript utility functions that are commonly used in modern JavaScript applications.
1. Copy Text to Clipboard
2. Get nth Day of the Year
3. Remove Duplicates from an Array
4. Select a Random Item from an Array
5. Grayscale a RGB Color Value (Based on the luminance of the color)
6. Parse Query Parameters from a URL
7. Pick Keys from an Object
8. Get a Random Hex Color
9. Remove Tag from HTML
Thank you for reading! I hope you found this helpful!
Happy coding!