I'm using underscore to count object length. _.size(object). Because this object is being handled by angularjs there's a $$hashKey property in the object that's making the length 1 larger than it should be. What's the correct way to count object lengths in angularjs?
Will this do? _.size(_.omit(object, '$$hashKey'));
Updated
angular.copy() strips $$hashKey out for you. So it seems a more Angular way would be _.size(angular.copy(object));.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With