polyfills for the new arrays methods