December 2016
Intermediate to advanced
841 pages
17h
English
In the previous chapters, we learned the basics of TypeScript and we worked with various frameworks. We will discover more advanced features of TypeScript in this chapter. This chapter covers the following aspects:
Sometimes, you must check whether a value is of a certain type. For instance, if you have a value of a class Base, you might want to check if it is of a certain subclass Derived. In JavaScript you would write this with an instanceof check. Since TypeScript is an extension of JavaScript, you can also use instanceof in TypeScript. In other typed ...
Read now
Unlock full access