UNPKG

dropkiq

Version:

Liquid Expressions Simplified

1 lines 1 kB
"use strict";var __extends=this&&this.__extends||function(){var r=function(t,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o])})(t,o)};return function(t,o){function e(){this.constructor=t}r(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0});var drop_1=require("./drop"),underscore_1=require("../util/underscore"),blank_drop_1=require("../drop/blank-drop"),NullDrop=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return __extends(t,r),t.prototype.equals=function(r){return underscore_1.isNil(underscore_1.toValue(r))||r instanceof blank_drop_1.BlankDrop},t.prototype.gt=function(){return!1},t.prototype.geq=function(){return!1},t.prototype.lt=function(){return!1},t.prototype.leq=function(){return!1},t.prototype.valueOf=function(){return null},t}(drop_1.Drop);exports.NullDrop=NullDrop;