Some array utilities for node.js