@n3okill/utils
Version:
Many javascript helpers
11 lines • 358 B
JavaScript
import { equalPrimitive } from "./equalPrimitive";
/**
* Given two regular expressions, return true if they are equal.
* @param {T} a - T, b: U
* @param {U} b - U is the type of the second parameter.
* @returns `true`
*/
export function equalRegExp(a, b) {
return equalPrimitive(a.toString(), b.toString());
}
//# sourceMappingURL=equalRegExp.js.map