Take a look at the screenshot ...

The reason I'm experimenting is because I did a simple google search to check if a parameter is a function, and I found this ...
var getClass = {}.toString; ... function isFunctionA(object) { return object && getClass.call(object) == '[object Function]'; }
source: http://jsperf.com/alternative-isfunction-implementations/4
So what is the difference between what I print and the source code example? Why does Chrome give an error when entering only {}.toString , but it works fine when it is inside the bracket?
source share