filters files in the list by some criteria

void filter(object|function criteria);
criteriaobject|functionthe filtering criteria


// simple filtering with a configuration object{ by:"status", match:"queue" });
// more complex filtering with a function{
    file.status === "failed" && file.size > 20000;

Related samples


The criteria parameter set as object has the following attributes:

  • by - (string) the key of the file attribute
  • match - (string) the value of the file attribute

To revert Vault to the initial state, call the filter() method without parameters.; // show all files
See also
Back to top