Some extra functions for Array prototype