import { Card } from '../card/card' ; export class List { constructor ( private name = "Default List" , private cards = new Array < Card > ( ) ) { } addCard ( ... cards ) { this . cards = this . cards . concat ( cards ) ; } getCards ( ) { return this . cards ; } removeCard ( card ) { this . cards . splice ( this . cards . indexOf ( card ) , 1 ) ; } }