JSFiddle - React, Tailwind, and code Playground

by 2Yootz

TypeScript

export class DropShip {
   name: string;
   orderID: string;
}

 export class model {
   dropShips: DropShip[];
   constructor() {
      this.dropShips = new Array<DropShip>()
   }
}

const index = model.dropShips.map(i=>{
   return i.orderID;

});

console.log(index);