Project: appceleratorstudio
Issue TISTUD-3063: Improve JS type inferencing to use typeof comparisons as hints
We can make use of typeof comparisons to a variable/argument/object to infer types. In many cases it may be used as a guard against undefined variables, but in other it may be used for a type of duck typing like in ruby where a function may take multiples types for the same argument and handle them differently (or convert one to another).
Story points: 8