MCPcopy Index your code
hub / github.com/nodejs/node / arrayHasEqualElement

Function arrayHasEqualElement

lib/internal/util/comparisons.js:671–680  ·  view source on GitHub ↗
(array, val1, mode, memo, comparator, start, end)

Source from the content-addressed store, hash-verified

669}
670
671function arrayHasEqualElement(array, val1, mode, memo, comparator, start, end) {
672 for (let i = end - 1; i >= start; i--) {
673 if (comparator(val1, array[i], mode, memo)) {
674 // Move the matching element to make sure we do not check that again.
675 array[i] = array[end];
676 return true;
677 }
678 }
679 return false;
680}
681
682function setObjectEquiv(array, a, b, mode, memo) {
683 let direction = 1;

Callers 2

partialObjectSetEquivFunction · 0.85
setObjectEquivFunction · 0.85

Calls 1

comparatorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…