I\'m learning Angular2. I have a component with a variable which is an object. I\'m iterating over the fields of the object, and acording to the type of data of that positio
Alternatively, you can compare the constructor name.
{{ foo.constructor.name === 'FooClass' }}
Detailed info about this here.