README
Sometimes you want to keep track of a collection of objects, but have that collection indexed by different properties. This is where indexify might be useful:
indexify = ; var persons = ; persons;persons; personsby; // two persons (an array)personsbyid'09707'; // one person (an object)
That's basically it. The only other thing you're currently able to do is remove objects from the collection:
persons;
Changes
0.3
- Add the ability to search for multiple values:
posts.by.tags('pet', 'house')
.
0.2
- If the
extract
function returns an array, then the index will be updated based on the individual elements in the array.