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