code: function (type, item, hard) {
          if (hard) {
              return harderTypes[type](getType(item), item);
          }
          return (getType(item) === simpleTypes[type]);
      }
docs: Check a type against an input