Javascript typeof operator precedence


#1

Hello Jules,

 

Thanks for adding typeof. There is a bug there, as it seems to collect greedily everything that stands after it. There seems to be an error in operator predecence.

 


typeof initData=='function'       -----> number (incorrect)

(typeof initData)=='function'     -----> 1  (correct)

Thanks,

George.


#2

Thanks, should be OK now