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

Method reverse

src/utils/comparator/Comparator.js:78–81  ·  view source on GitHub ↗

* Reverses the comparison order.

()

Source from the content-addressed store, hash-verified

76 * Reverses the comparison order.
77 */
78 reverse() {
79 const compareOriginal = this.compare;
80 this.compare = (a, b) => compareOriginal(b, a);
81 }
82}

Callers 1

Comparator.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected