]> git.r.bdr.sh - rbdr/dotfiles/blob
d3a77641da0f862bc995190bd1aa66c9f43743b6
[rbdr/dotfiles] /
1 'use strict';
2
3 var isRegExp = require('./is-reg-exp');
4
5 module.exports = function (x) {
6 if (!isRegExp(x)) throw new TypeError(x + " is not a RegExp object");
7 return x;
8 };