9.11 IsCallable

2010-05-04

Boolean IsCallable(input)

Is this an object that implements the internal [[Call]] property? In other words, can this object be called?

Code: (Meta Ecma)
function IsCallable(input){
if (typeof input == 'object' && input.[[HasProperty]]("[[Call]]")) return true;
return false;
}