Fire away...
Not with a boolean typeof test, no as methods are of type function but the typeof operator is well supported. With standardised methods, you can limit yourself to a type-conversion...
Type: Posts; User: mwinter; Keyword(s):
Fire away...
Not with a boolean typeof test, no as methods are of type function but the typeof operator is well supported. With standardised methods, you can limit yourself to a type-conversion...
There are two ways to create a function object: function declarations and function expressions. I explained the difference fairly recently on Usenet, so if I may, I'd prefer to just direct you to...
Well, it seems that several people have now read this thread. Someone even gave it an excellent rating. But no questions or comments? :confused:
Oh well. :rolleyes:
Mike
If one looks at the ECMAScript code I've posted to this forum, one should notice a simple pattern, or at least variations of it:
var identifier = (function() {
/* ... */
})();Code as simple...