Polyfill Javascript

Example

if (!Array.prototype.forEach) {
	Array.prototype.forEach = function(callback, thisArg) {
		for (let i = 0 ; i < this.length ; i++) {
			callback.call(thisArg, this[i], i, this);
		}
	};
}