MCPcopy Create free account
hub / github.com/angular/dev-infra / delete

Method delete

github-actions/browserstack/set-browserstack-env.js:12467–12486  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

12465 }
12466 const iterator = this[kHeadersMap][Symbol.iterator]();
12467 const firstValue = iterator.next().value;
12468 array[0] = [firstValue[0], firstValue[1].value];
12469 assert(firstValue[1].value !== null);
12470 for (let i = 1, j = 0, right = 0, left = 0, pivot = 0, x, value; i < size; ++i) {
12471 value = iterator.next().value;
12472 x = array[i] = [value[0], value[1].value];
12473 assert(x[1] !== null);
12474 left = 0;
12475 right = i;
12476 while (left < right) {
12477 pivot = left + (right - left >> 1);
12478 if (array[pivot][0] <= x[0]) {
12479 left = pivot + 1;
12480 } else {
12481 right = pivot;
12482 }
12483 }
12484 if (i !== pivot) {
12485 j = i;
12486 while (j > left) {
12487 array[j] = array[--j];
12488 }
12489 array[left] = x;

Callers

nothing calls this directly

Calls 3

__privateGetFunction · 0.70
containsMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected