code: function assert (value, expected, method, type, identifier) {
      if (value !== expected) {
        throw new Error(method + ' only accepts ' + type + ' as ' + identifier);
      }
    }
docs: Throws an error if value !=== expected. This is useful for input validation.