code: function typeName(x) {
  	  var name = typeof x;
  	  if (name !== 'object') {
  	    return name;
  	  }
  	  if (!x) {
  	    return 'null';
  	  }
  	  if (x instanceof Error) {
  	    return 'error';
  	  }
  	  return ({}).toString.call(x).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
  	}
docs: /*
  typeName - Given a Javascript value, returns the type of the object as a string