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