44024: simple search ui finished

This commit is contained in:
Lotte Hofstede
2017-09-21 16:40:19 +02:00
parent 821fba7f4e
commit 1a149b9d54
3 changed files with 20 additions and 21 deletions

View File

@@ -119,16 +119,15 @@ export function isEmpty(obj?: any): boolean {
}
if (objectType === 'object') {
if (Object.keys(obj).length === 0) {
return true;
}
const length = obj.length;
if (typeof length === 'number') {
return !length;
}
}
if (Object.keys(obj).length === 0) {
return true;
}
return false;
}