* Wraps an equality function to handle either value being `undefined`.
(equal: ValueEqualityFn<T>)
| 539 | * Wraps an equality function to handle either value being `undefined`. |
| 540 | */ |
| 541 | function wrapEqualityFn<T>(equal: ValueEqualityFn<T>): ValueEqualityFn<T | undefined> { |
| 542 | return (a, b) => (a === undefined || b === undefined ? a === b : equal(a, b)); |
| 543 | } |
| 544 | |
| 545 | function getLoader<T, R>(options: ResourceOptions<T, R>): ResourceStreamingLoader<T, R> { |
| 546 | if (isStreamingResourceOptions(options)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…