Closed andrewrk closed 12 years ago
Let's say I have a list of 3 objects:
fixtures.User = * id: 'freddie-freeloader' name: 'Freddie Freeloader' subscription: 'free' * id: 'polly-pro' name: 'Polly Pro' subscription: 'pro' * id: 'platinum-pete' name: 'Platinum Pete' subscription: 'platinum'
This looks like:
fixtures.User = [ { id: 'freddie-freeloader', name: 'Freddie Freeloader', subscription: 'free' }, { id: 'polly-pro', name: 'Polly Pro', subscription: 'pro' }, { id: 'platinum-pete', name: 'Platinum Pete', subscription: 'platinum' } ];
Now let's say I remove 2 objects from the list:
fixtures.User = * id: 'freddie-freeloader' name: 'Freddie Freeloader' subscription: 'free'
fixtures.User = { id: 'freddie-freeloader', name: 'Freddie Freeloader', subscription: 'free' };
So my object has changed from a list of objects, to an object, just by removing objects from the list. This is error-prone.
→ #132
Let's say I have a list of 3 objects:
This looks like:
Now let's say I remove 2 objects from the list:
This looks like:
So my object has changed from a list of objects, to an object, just by removing objects from the list. This is error-prone.