On Fri, Jun 5, 2009 at 7:22 PM, Garrett Smith <[email protected]>wrote:

>
> function isCallable(obj, prop) {
>  var type = typeof obj[prop];
>  if(isNewTypeof) {
>    return type === "function";
>  } else {
>    // fallback "best practice".
>  }
> }
>
>
 function isCallable(obj, prop) {
   var type = typeof obj[prop];
   if (function(){"use strict";return this;}()) {
     // fallback "best practice".
   } else {
     return type === "function";
   }
 }


-- 
   Cheers,
   --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to