Demonstrate null object pattern in Typescript. Avoid checking against a null references throughout code base.
In order to demonstrate this pattern just run tests. Each test case will demonstrate benefits of this pattern.
Build is not relevant, only tests. Node is required. Just run:
npm install && npm test
Open issue with any suggestion how to improve explanation.