"use strict";
// Polyfills for Array Functions
SmartPolyfill.register('Array.isArray', {
  Chrome: '1 - 4',
  Firefox: '1 - 3',
  IE: '1 - 8',
  Safari: '1 - 4',
  Opera: '1 - 10'
}, function(o){
  return Object.prototype.toString.call(o) === '[object Array]';
});
SmartPolyfill.register('Array.prototype.indexOf', {
  IE: '1 - 8'
}, function(searchElement, fromIndex) {
  fromIndex = fromIndex || 0;
  if(fromIndex < this.length){
    for(var i = fromIndex; i < this.length; ++i){
      if(this[i] === searchElement) return i;
    }
  }
  return -1;
});
SmartPolyfill.register('Array.prototype.lastIndexOf', {
  IE: '1 - 8'
}, function(searchElement, fromIndex){
  fromIndex = fromIndex || this.length - 1;
  if(fromIndex < this.length){
    for(var i = fromIndex; i < this.length && i > -1; --i){
      if(this[i] === searchElement) return i;
    }
  }
  return -1;
});
SmartPolyfill.register('Array.prototype.forEach', {
  IE: '1 - 8'
}, function(callback, thisArg){
  if(typeof callback !== 'function') throw new TypeError("Callback is not a function");
  thisArg = typeof thisArg === 'undefined' ? this : thisArg;
  for(var i = 0; i < this.length; ++i){
    callback.call(thisArg, this[i], i, this);
  }
});
SmartPolyfill.register('Array.prototype.map', {
  IE: '1 - 8'
}, function(callback, thisArg){
  if(typeof callback !== 'function') throw new TypeError("Callback is not a function");
  thisArg = typeof thisArg === 'undefined' ? this : thisArg;
  var ToReturn = [];
  for(var i = 0; i < this.length; ++i){
    ToReturn.push(callback.call(thisArg, this[i], i, this));
  }
  return ToReturn;
});
SmartPolyfill.register('Array.prototype.filter', {
  IE: '1 - 8'
}, function(callback, thisArg){
  if(typeof callback !== 'function') throw new TypeError("Callback is not a function");
  thisArg = typeof thisArg === 'undefined' ? this : thisArg;
  var ToReturn = [];
  for(var i = 0; i < this.length; ++i){
    if(callback.call(thisArg, this[i], i, this)) ToReturn.push(this[i]);
  }
  return ToReturn;
});
@@ -1984,28 +1984,425 @@
 ;%0A  %7D%0A  return ToReturn;%0A%7D);
+%0ASmartPolyfill.register('Array.prototype.reduce', %7B%0A  IE: '1 - 8',%0A  Firefox: '1 - 3',%0A  Safari: '1 - 3',%0A  Opera: '1 - 10'%0A%7D, function(callback, value)%7B%0A  if(typeof callback !== 'function') throw new TypeError(%22Callback is not a function%22);%0A  value = value %7C%7C 0;%0A  for(var i = 0; i %3C this.length; ++i)%7B%0A    if(this%5Bi%5D) value = callback.call(this, value, this%5Bi%5D, i, this);%0A  %7D%0A  return value;%0A%7D);

Add Array.prototype.reduce polyfill