10 lines
205 B
JavaScript
10 lines
205 B
JavaScript
exports.isJavaObject = function( o ) {
|
|
if (o === global){
|
|
return false;
|
|
}
|
|
if (o !== undefined && o !== null){
|
|
return o.getClass ? true : false;
|
|
}
|
|
return o instanceof java.lang.Object;
|
|
};
|