(function(root) {

  function isBoolean(v) {
    return typeof v === 'boolean' || v instanceof Boolean;
  }

  if (typeof exports !== 'undefined') {
    if (typeof module !== 'undefined' && module.exports) {
      exports = module.exports = isBoolean;
    }
    exports.isBoolean = isBoolean;
  } else if (typeof define === 'function' && define.amd) {
    define([], function() {
      return isBoolean;
    });
  } else {
    root.isBoolean = isBoolean;
  }

})(this);


@@ -53,54 +53,62 @@
 urn 
-typeof v === 'boolean' %7C%7C v instanceof
+Object.prototype.toString.call(v) === '%5Bobject
  Boolean
 ;%0A  
@@ -99,24 +99,26 @@
 ject Boolean
+%5D'
 ;%0A  %7D%0A%0A  if 

change check to use toString