code: function sameType(a, b) {
    a = Object.prototype.toString.call(a);
    b = Object.prototype.toString.call(b);
    return a == b;
  }
docs: Check that a / b have the same type.
  
  @param {Object} a
  @param {Object} b
  @return {Boolean}
  @api private