Open aarifkhamdi opened 4 years ago
https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters
the type of this.suits[pickedSuit] is string, not any as it described
this.suits[pickedSuit]
string
any
check playground
https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters
the type of
this.suits[pickedSuit]
isstring
, notany
as it describedcheck playground