I\'m having issues using the instanceof operator and it doesn\'t seem to work. Here is a part of my code:
const results = _.map(items, function(item:
Try to instantiate the object with a constructor. It happened to me the same because I was manually mocking the object for testing purposes. If you create the item like following example, it should work:
item: Goal = new Goal(*item values*)