2024-08-20 23:25:37 +04:00

12 lines
203 B
JavaScript

define(function () {
// Is a given variable an object?
function isObject(obj) {
var type = typeof obj;
return type === 'function' || type === 'object' && !!obj;
}
return isObject;
});