TypeOf Regex

// use instanceof to determine the "type of" RegExp object
if (object instanceof RegExp) {}
SubZ390