var typeOf = function (x) {
      if (x === null) {
        return 'null';
      }
      var t = typeof x;