Javascript typeof operator precedence

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.

Thanks, should be OK now