function constructStores(newStoreData) {
  // console.table(newStoreData);
  for (let i = 0; i < newStoreData.length; i++) {
    let newStoreName = newStoreData[i][0];
    let newStore = new Store(
      newStoreName,
      newStoreData[i][1],
      newStoreData[i][2],
      newStoreData[i][3]
    );
    globalStores.push(newStore);
    globalStoreNames.push(newStoreName.toLowerCase());
  }
}
// I can even pass in a single name's data as single-row 2D array to get it constructed and pushed into the globalStores
I can even pass in a single name's data as single-row 2D array to get it constructed and pushed into the globalStores
I can even pass in a single name ' s data as single - row 2D array to get it constructed and pushed into the globalStores
function constructStores(newStoreData) {
  for (let i = 0; i < newStoreData.length; i++) {
    let newStoreName = newStoreData[i][0];
    let newStore = new Store(
      newStoreName,
      newStoreData[i][1],
      newStoreData[i][2],
      newStoreData[i][3]
    );
    globalStores.push(newStore);
    globalStoreNames.push(newStoreName.toLowerCase());
  }
}
function constructStores ( newStoreData ) { for ( let i = 0 ; i < newStoreData . length ; i ++ ) { let newStoreName = newStoreData [ i ] [ 0 ] ; let newStore = new Store ( newStoreName , newStoreData [ i ] [ 1 ] , newStoreData [ i ] [ 2 ] , newStoreData [ i ] [ 3 ] ) ; globalStores . push ( newStore ) ; globalStoreNames . push ( newStoreName . toLowerCase ( ) ) ; } }
I can even pass in a single name's data as single-row 2D array to get it constructed and pushed into the globalStores
I can even pass in a single name ' s data as single - row 2D array to get it constructed and pushed into the globalStores
// console.table(newStoreData);