TypeScript - Accessing object with null key

var car = {
    wheels : 3,
    colour: 'red',
    drive: function(){
    ...
    }
}
routes[null].redirectTo

An index expression argument must be of type string, number, symbol, or any.

var nullRef: any = null;
routes[nullRef].redirectTo
comments powered by Disqus