JavaScript utilities for handling arrays.