Tiny refactoring of array.js I did while reading the source.