The left-hand side of an ‘instanceof’ expression must be of type ‘any’, an object type or a type parameter
I’ve been playing around with TypeScript (I’m still learning) and writing up a few test scenarios to better understand programming fundamentals.