filters files in the list by some criteria
criteria | object|function | the filtering criteria |
// simple filtering with a configuration object
vault.data.filter({ by:"status", match:"queue" });
// more complex filtering with a function
vault.data.filter(function(file){
file.status === "failed" && file.size > 20000;
});
The criteria parameter set as object has the following attributes:
To revert Vault to the initial state, call the filter() method without parameters.
vault.data.filter(); // show all files