(
this: unknown,
element: unknown,
index: number,
array: unknown,
)
| 115 | |
| 116 | // Wrap the callback to pass proxied elements |
| 117 | const wrappedCallback = function ( |
| 118 | this: unknown, |
| 119 | element: unknown, |
| 120 | index: number, |
| 121 | array: unknown, |
| 122 | ) { |
| 123 | const proxiedElement = getProxiedElement(element, index) |
| 124 | return callback.call(this, proxiedElement, index, array) |
| 125 | } |
| 126 | |
| 127 | // For reduce/reduceRight, the callback signature is different |
| 128 | if (methodName === `reduce` || methodName === `reduceRight`) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…