*/
export function key<T, R = T>(comparator?: (a: R, b: R) => boolean): TransformValue<T, R> {
kind: TransformKind.Key,
extract: (from: T) => from as unknown as R,
equals: comparator ?? ((a, b) => a === b),
};
}
/** A value that will be tracked and replaced if the comparator is not equal. */