MCPcopy Create free account
hub / github.com/formkit/formkit / eqRegExp

Function eqRegExp

packages/utils/src/index.ts:152–157  ·  view source on GitHub ↗
(x: RegExp, y: RegExp)

Source from the content-addressed store, hash-verified

150 * @public
151 */
152export function eqRegExp(x: RegExp, y: RegExp): boolean {
153 return (
154 x.source === y.source &&
155 x.flags.split('').sort().join('') === y.flags.split('').sort().join('')
156 )
157}
158
159/**
160 * Determines if a value is empty or not.

Callers 1

eqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected