src/index.js
function Mutt(schema, options = {}, debug = false) {
  if (debug) {
    this.config.setSetting("debug", true)
  }

  if (schema === undefined) {
    throw new Error("You must specify a Schema!")
  }

  // Setup a new form instance if called directly
  return new MuttForm(schema, options)
}
function Mutt(schema, options = {}, debug = false) {
  if (debug) {
    this.config.setSetting("debug", true)
  }

  if (schema === undefined) {
    throw new Error("You must specify a Schema!")
  }

  // Setup a new form instance if called directly
  return new MuttForm(schema, options)
}
function Mutt ( schema , options = { } , debug = false ) { if ( debug ) { this . config . setSetting ( "debug" , true ) } if ( schema === undefined ) { throw new Error ( "You must specify a Schema!" ) } // Setup a new form instance if called directly return new MuttForm ( schema , options ) }
Main Mutt API.
@returns {MuttForm} Returns an instance of a MuttForm
@example
let form = new Mutt({ name: { type: 'string' } })
Main Mutt API .