UNPKG

dropkiq

Version:

Liquid Expressions Simplified

1 lines 962 B
"use strict";var __extends=this&&this.__extends||function(){var o=function(t,r){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var r in t)t.hasOwnProperty(r)&&(o[r]=t[r])})(t,r)};return function(t,r){function e(){this.constructor=t}o(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0});var forloop_drop_1=require("./forloop-drop"),TablerowloopDrop=function(o){function t(t,r){var e=o.call(this,t)||this;return e.length=t,e.cols=r,e}return __extends(t,o),t.prototype.row=function(){return Math.floor(this.i/this.cols)+1},t.prototype.col0=function(){return this.i%this.cols},t.prototype.col=function(){return this.col0()+1},t.prototype.col_first=function(){return 0===this.col0()},t.prototype.col_last=function(){return this.col()===this.cols},t}(forloop_drop_1.ForloopDrop);exports.TablerowloopDrop=TablerowloopDrop;