.comparison-panel { margin-top: 20px; padding: 15px; background: #ecf0f1; border-radius: 8px; }
// Find first index where value > threshold findFirstGreaterThan(array, threshold) { return array.findIndex(item => item > threshold); } greater than on keyboard
// Chain comparisons chainComparison(values, thresholds) { return values.map((value, index) => ({ value, threshold: thresholds[index], result: value > thresholds[index] })); } .comparison-panel { margin-top: 20px
// Usage example const gtFeature = new GreaterThanFeature(); console.log(gtFeature.compare(10, 5)); // true console.log(gtFeature.filterGreaterThan([1,5,10,15,20], 10)); // [15,20] console.log(gtFeature.countGreaterThan([1,5,10,15,20], 10)); // 2 // Mobile keyboard with greater than key class MobileKeyboard { constructor(elementId) { this.container = document.getElementById(elementId); this.input = null; this.init(); } init() { this.createKeyboard(); this.attachEvents(); } threshold) { return array.findIndex(item =>