Sha256: 2d618d7f2c02b508dfb3bd5cf9320704853076f60fdce8beed2c9a1c34e834fb
Contents?: true
Size: 453 Bytes
Versions: 25
Compression:
Stored size: 453 Bytes
Contents
var Utils = function() { /** If possibleFunction is undefined, use otherFunction */ function fOr(possibleFunction,otherFunction) { if (typeof possibleFunction != "undefined") { return possibleFunction; } else { return otherFunction; } }; /** Turn possibly-undefined into a function */ function f(possibleFunction) { return fOr(possibleFunction,function() {}); }; return { f: f, fOr: fOr }; }();
Version data entries
25 entries across 9 versions & 1 rubygems