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

Method equal

src/utils/comparator/Comparator.js:31–33  ·  view source on GitHub ↗

* Checks if two variables are equal. * @param {*} a * @param {*} b * @return {boolean}

(a, b)

Source from the content-addressed store, hash-verified

29 * @return {boolean}
30 */
31 equal(a, b) {
32 return this.compare(a, b) === 0;
33 }
34
35 /**
36 * Checks if variable "a" is less than "b".

Callers 15

lessThanOrEqualMethod · 0.95
greaterThanOrEqualMethod · 0.95
linearSearchFunction · 0.95
binarySearchFunction · 0.95
jumpSearchFunction · 0.95
Comparator.test.jsFile · 0.80
deleteMethod · 0.80
findMethod · 0.80
findMethod · 0.80
deleteMethod · 0.80
findMethod · 0.80
uncleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected