File: src/Calx/Utility/Comparator.ts

Recommend this page to a friend!
  Packages of ikhsan   jQuery Calx   src/Calx/Utility/Comparator.ts   Download  
File: src/Calx/Utility/Comparator.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: jQuery Calx
Calculate form input values based on formulas
Author: By
Last change:
Date: 6 months ago
Size: 782 bytes
 

Contents

Class file image Download
export const Comparator = { equal(a : any, b : any) : boolean { /** ignore case as excel does */ if (typeof a == 'string') { return a.toLowerCase() == ('' + b).toLowerCase(); } return a == b; }, notEqual(a : any, b : any) : boolean { /** ignore case as excel does */ if (typeof a == 'string') { return a.toLowerCase() != ('' + b).toLowerCase(); } return a != b; }, lessThan(a : any, b : any) : boolean { return a < b; }, greaterThan(a : any, b : any) : boolean { return a > b; }, lessEqualThan(a : any, b : any) : boolean { return a <= b; }, greaterEqualThan(a : any, b : any) : boolean { return a >= b; } }