_validateData() {
    const requiredInputs = [
      "MSRP",
      "Selling Price",
      "Residual Value",
      "Money Factor",
    ];
    const requiredInput = [this.msrp, this.sellingPrice, this.rv, this.mf];
    requiredInput.forEach((field, i) => {
      if (!field || field === 0) {
        throw new Error(`Invalid Input: ${requiredInputs[i]}`);
      }
    });
  }
/*
    Validates required fields.
    Throws: Error | If there's an invalid required field
  */
Validates required fields.
Throws: Error | If there's an invalid required field
Validates required fields . Throws : Error | If there ' s an invalid required field
_validateData() {
    const requiredInputs = [
      "MSRP",
      "Selling Price",
      "Residual Value",
      "Money Factor",
    ];
    const requiredInput = [this.msrp, this.sellingPrice, this.rv, this.mf];
    requiredInput.forEach((field, i) => {
      if (!field || field === 0) {
        throw new Error(`Invalid Input: ${requiredInputs[i]}`);
      }
    });
  }
_validateData ( ) { const requiredInputs = [ "MSRP" , "Selling Price" , "Residual Value" , "Money Factor" , ] ; const requiredInput = [ this . msrp , this . sellingPrice , this . rv , this . mf ] ; requiredInput . forEach ( ( field , i ) => { if ( ! field || field === 0 ) { throw new Error ( ` ${ requiredInputs [ i ] } ` ) ; } } ) ; }
Validates required fields.
Validates required fields .