Utility functions for functional programming in Node.js