MCPcopy Index your code
hub / github.com/trekhleb/javascript-algorithms / lessThan

Method lessThan

src/utils/comparator/Comparator.js:41–43  ·  view source on GitHub ↗

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

(a, b)

Source from the content-addressed store, hash-verified

39 * @return {boolean}
40 */
41 lessThan(a, b) {
42 return this.compare(a, b) < 0;
43 }
44
45 /**
46 * Checks if variable "a" is greater than "b".

Callers 12

lessThanOrEqualMethod · 0.95
binarySearchFunction · 0.95
Comparator.test.jsFile · 0.80
insertMethod · 0.80
findMethod · 0.80
sortMethod · 0.80
sortMethod · 0.80
sortMethod · 0.80
sortMethod · 0.80
partitionArrayMethod · 0.80
sortMethod · 0.80
sortMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected