UNPKG

dropkiq

Version:

Liquid Expressions Simplified

1 lines 852 B
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0});var underscore_1=require("../util/underscore"),empty_drop_1=require("../drop/empty-drop"),BlankDrop=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return __extends(r,t),r.prototype.equals=function(r){return!1===r||(!!underscore_1.isNil(underscore_1.toValue(r))||(underscore_1.isString(r)?/^\s*$/.test(r):t.prototype.equals.call(this,r)))},r}(empty_drop_1.EmptyDrop);exports.BlankDrop=BlankDrop;