How can I get the object length ?
In console my object looks like this:
Object { 2: true, 3: true, 4: true }
.length w
.length
Short variant Object.keys($scope.someobject).length
Object.keys($scope.someobject).length