UNPKG

ws-rmi

Version:

A Remote Method Invocation implementation written in JavaScript utilising the WebSocket protocol

15 lines (14 loc) 564 B
/** * Returns the XOR of two boolean conditions; that is, if either condition1 OR condition2 is true, but not both. * * @param condition1 The first condition. * @param condition2 The second condition. */ export declare const xor: (condition1: boolean, condition2: boolean) => boolean; /** * Returns whether the given value is equal to any of the items in compareTo. * * @param value The value to compare. * @param compareTo The values to be compared against value. */ export declare const isEqualToAny: <T>(value: unknown, ...compareTo: T[]) => boolean;