Implement Array.Clear().

In future the implementation could probably be replaced by a call to the ECMAScript6 Array.prototype.fill.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill
(Chrome 36, Firefox 31, Safari 7.1 already support it)