UNPKG

tiny-slider

Version:

Vanilla javascript slider for all purposes, inspired by Owl Carousel.

13 lines (11 loc) • 266 B
// forEach if (!Array.prototype.forEach) { Array.prototype.forEach = function(block, thisObject) { var len = this.length >>> 0; for (var i = 0; i < len; i++) { if (i in this) { block.call(thisObject, this[i], i, this); } } }; }