Using IsCallable Operation?

Garrett Smith dhtmlkitchen at gmail.com
Fri Jun 5 13:30:41 PDT 2009


There seems to be a lot of controversy on how to properly check if
something should be callable. There isn't any way to determine that in
ES3.

The internal IsCallable determines if an object has a [[Call]] property.

Will that be available as a language feature, not internal?

For example:-
  Object.isCallable( document.images );

- would provide a check to internal IsCallable and return the result.

Garrett


More information about the es-discuss mailing list