MCPcopy
hub / github.com/trekhleb/javascript-algorithms / greaterThan

Method greaterThan

src/utils/comparator/Comparator.js:51–53  ·  view source on GitHub ↗

* Checks if variable "a" is greater than "b". * @param {*} a * @param {*} b * @return {boolean}

(a, b)

Source from the content-addressed store, hash-verified

49 * @return {boolean}
50 */
51 greaterThan(a, b) {
52 return this.compare(a, b) > 0;
53 }
54
55 /**
56 * Checks if variable "a" is less than or equal to "b".

Callers 6

greaterThanOrEqualMethod · 0.95
jumpSearchFunction · 0.95
Comparator.test.jsFile · 0.80
insertMethod · 0.80
findMethod · 0.80
sortMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected