ui
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function isEmpty() {
|
||||
if (Array.isArray(this.items)) {
|
||||
return !this.items.length;
|
||||
}
|
||||
|
||||
return !Object.keys(this.items).length;
|
||||
};
|
||||
Reference in New Issue
Block a user