JavaScript utils for working with arrays.