UNPKG

@n3okill/utils

Version:
11 lines 358 B
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