Is object regex expression - Node.js Object

Node.js examples for Object:Object Type

Description

Is object regex expression

Demo Code

function isRegExp(re) {
  return isObject(re) && objectToString(re) === '[object RegExp]';
}

Related Tutorials