stevendesu / jsindex

1 stars 0 forks source link

Ability to drop columns #6

Closed stevendesu closed 5 years ago

stevendesu commented 5 years ago

Once I start merging multiple tables together, I can end up with lots of duplicate or undesirable data in a massive collection.

To save memory, improve performance of future operations, and "just because I want to", I'd like something like the following:

const collection = Array.load(...).index();
collection.drop(["column1"]);

This should delete the key from every element of the collection as well as drop an index (if one exists)

As this is a new feature and not a change to the existing API, this should bump the API version to 0.1.1 (or similar)