A set of utility functions for functional programming in JavaScript