A bunch of random, contrived functions with maybe some value. Mostly small proof-of-concepts.
Examples
destructure()
Operates just like const sanitize = ({ id, email, date }) => ({ id, email, date })
but with destructure
you can store your included keys in an array, say, in your config.
const keysToInclude = ['id', 'email', 'date']
const sanitize = destructure(keysToInclude)