UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

12 lines 390 B
export const differentThan = (a, b) => { let [aInts, aDecimals] = a.toString().split("."); let [bInts, bDecimals] = b.toString().split("."); if (Number(aInts) !== Number(bInts) || (Number(aInts) === Number(bInts) && Number(aDecimals) !== Number(bDecimals))) { return true; } else { return false; } }; //# sourceMappingURL=differentThan.js.map