Transforms a string or an array of strings into an array of regular expressions.
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 undefined.
An array 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.
This function accepts a value that may be a single string, an array of strings, or
undefined
. It then:RegExp
object.RegExp
objects.