MCPcopy Index your code
hub / github.com/angular/angular / wrapEqualityFn

Function wrapEqualityFn

packages/core/src/resource/resource.ts:541–543  ·  view source on GitHub ↗

* Wraps an equality function to handle either value being `undefined`.

(equal: ValueEqualityFn<T>)

Source from the content-addressed store, hash-verified

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

Callers 1

resourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…