What I've used
A collection with 3 JavaScript snippets that I used most
One line utilities
Check if an object is emptyobject
_10const isEmptyObject = (obj) => Object.keys(obj).length === 0
Get a random stringstring
_10const getRandomString = () => Math.random().toString(36).slice(-10)
Check if a number is evennumber
_10const isEven = (number) => number % 2 === 0