Front end of the Slack clone application.

valid-reg-exp.js 189B

123456789
  1. "use strict";
  2. var isRegExp = require("./is-reg-exp");
  3. module.exports = function (value) {
  4. if (!isRegExp(value)) throw new TypeError(value + " is not a RegExp object");
  5. return value;
  6. };