]> git.r.bdr.sh - rbdr/dotfiles/blob
6eb12977c031d9ec446b9e35f2b840bb84825729
[rbdr/dotfiles] /
1 'use strict';
2
3 var toString = Object.prototype.toString
4
5 , id = toString.call(/a/);
6
7 module.exports = function (x) {
8 return (x && (x instanceof RegExp || (toString.call(x) === id))) || false;
9 };