src/jsonUtils/models.js
// Will always produce a unique Number (Int) based on of the current date
Will always produce a unique Number (Int) based on of the current date
Will always produce a unique Number ( Int ) based on of the current date
function generateIdNumber() {
  let date = Date.now();
  if (date <= previousNumber) {
    previousNumber += 1;
    date = previousNumber;
  } else {
    previousNumber = date;
  }
  return date;
}
function generateIdNumber ( ) { let date = Date . now ( ) ; if ( date <= previousNumber ) { previousNumber += 1 ; date = previousNumber ; } else { previousNumber = date ; } return date ; }
Will always produce a unique Number (Int) based on of the current date
Will always produce a unique Number ( Int ) based on of the current date