Transforms a string or an array of strings into an array of regular expressions, ensuring that the result is always an array.
This function accepts a value that may be a single string, an array of strings, or undefined. It then:
undefined
RegExp
The value to be transformed, which can be a single string, an array of strings or arrays of strings, or undefined.
An array of RegExp objects or arrays of RegExp objects. If the input is undefined, an empty array is returned.
Transforms a string or an array of strings into an array of regular expressions, ensuring that the result is always an array.
This function accepts a value that may be a single string, an array of strings, or
undefined
. It then:RegExp
object.RegExp
objects.RegExp
objects or arrays ofRegExp
objects.