isFunction or isIENativeFunction ?
One truly common task in JavaScript is to determinate if a specific " reference " is a Function, as we know them, or not. For those guys whose think typeof , instanceof , or Object.prototype.toString are enough, here I am with the proof things are NOT that simple, and these things are really important, business speaking, since these checks are in the core of whatever library we create or use for our Web 2.0 Application, Enterprise or not. Different Behavior Problem: Internet Explorer As historical black sheep in the browser panorama for its non standard JavaScript implementation , even for a simple task like the right manifestation of a property or function in core level, Internet Explorer, whatever version, will return false in every case described below: // alert is a function, that is why I use // this function to demonstrate // that for IE alert is not a function // sounds fun? alert(typeof alert); // object alert(alert instanceof Function); // false alert(Object.protot...