« Return to Thread: Using IsCallable Operation?

Using IsCallable Operation?

by Garrett :: Rate this Message:

Reply to Author | View in Thread

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
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss

 « Return to Thread: Using IsCallable Operation?