share/views/public/js/rbbt.js in rbbt-rest-1.8.55 vs share/views/public/js/rbbt.js in rbbt-rest-1.8.56

- old
+ new

@@ -47,5 +47,10 @@ return uncurried.apply(this, parameters.concat( Array.prototype.slice.call(arguments, 0) )); }; }; + +rbbt.default = function(val, def){ + if (undefined === val || null === val) return def + else return val +}