Returns whether the given object is a regex
the object to check
whether the given object is a regex
isRegular(/[0-9a-zA-Z]+/g); // trueisRegular('/[0-9a-zA-Z]+/g'); // false Copy
isRegular(/[0-9a-zA-Z]+/g); // trueisRegular('/[0-9a-zA-Z]+/g'); // false
Returns whether the given object is a regex