(x: RegExp, y: RegExp)
| 150 | * @public |
| 151 | */ |
| 152 | export 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. |