dropkiq
Version:
Liquid Expressions Simplified
1 lines • 1.03 kB
JavaScript
;var __extends=this&&this.__extends||function(){var t=function(r,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])})(r,o)};return function(r,o){function n(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var drop_1=require("./drop"),ForloopDrop=function(t){function r(r){var o=t.call(this)||this;return o.i=0,o.length=r,o}return __extends(r,t),r.prototype.next=function(){this.i++},r.prototype.index0=function(){return this.i},r.prototype.index=function(){return this.i+1},r.prototype.first=function(){return 0===this.i},r.prototype.last=function(){return this.i===this.length-1},r.prototype.rindex=function(){return this.length-this.i},r.prototype.rindex0=function(){return this.length-this.i-1},r.prototype.valueOf=function(){return JSON.stringify(this)},r}(drop_1.Drop);exports.ForloopDrop=ForloopDrop;