UNPKG

@n3okill/utils

Version:
14 lines 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.equalRegExp = equalRegExp; const equalPrimitive_1 = require("./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` */ function equalRegExp(a, b) { return (0, equalPrimitive_1.equalPrimitive)(a.toString(), b.toString()); } //# sourceMappingURL=equalRegExp.js.map