Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
flux.DateX.__name__ = ["flux","DateX"];
flux.DateX.compare = function(v1,v2) {
var diff = v1.getTime() - v2.getTime();
return diff < 0?-1:diff > 0?1:0;
}
flux.DateX.equals = function(v1,v2) {
return v1.getTime() == v2.getTime();
}
flux.DateX.toString = function(v) {
return HxOverrides.dateStr(v);
}
flux.DateX.UTCString = function(d) {
return d.toUTCString();
}
flux.ArrayX = function() { }
$hxClasses["flux.ArrayX"] = flux.ArrayX;
flux.ArrayX.__name__ = ["flux","ArrayX"];
flux.ArrayX.stringify = function(a) {
return JSON.stringify(o);
}
flux.ArrayX.filter = function(a,f) {
var n = [];
var _g = 0;
while(_g < a.length) {
var e = a[_g];
++_g;
if(f(e)) n.push(e);
}
return n;
}
flux.ArrayX.size = function(a) {
return a.length;