@n3okill/utils
Version:
Many javascript helpers
12 lines • 415 B
JavaScript
import { equalPrimitive } from "./equalPrimitive";
/**
* Check if two functions are equal.
* @param {T} a - T, b: U
* @param {U} b - U is the type of the second parameter.
* @returns A boolean value.
*/
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
export function equalFunction(a, b) {
return equalPrimitive(a.toString(), b.toString());
}
//# sourceMappingURL=equalFunction.js.map