Improve HRepeater width properties

This commit is contained in:
miruka
2019-12-19 15:56:07 -04:00
parent 2229b41af1
commit be0541f2d9
5 changed files with 30 additions and 15 deletions

View File

@@ -57,6 +57,12 @@ QtObject {
}
function sum(array) {
if (array.length < 1) return 0
return array.reduce((a, b) => (isNaN(a) ? 0 : a) + (isNaN(b) ? 0 : b))
}
function isEmptyObject(obj) {
return Object.entries(obj).length === 0 && obj.constructor === Object
}