define(['../object/forOwn', './isArray'], function (forOwn, isArray) {
function isEmpty(val){
if (val == null) {
// typeof null == 'object' so we check it first
return true;
} else if ( typeof val === 'string' || isArray(val) ) {
return !val.length;
} else if ( typeof val === 'object' ) {
var result = true;
forOwn(val, function(){
result = false;
return false; // break loop
});
return result;
} else {
return true;
}
}
return isEmpty;
});
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|