Skip to content

Commit

Permalink
Merge 588cf5a into c91eb67
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihky committed Oct 14, 2019
2 parents c91eb67 + 588cf5a commit d45534e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AccessControl.ts
Expand Up @@ -742,13 +742,13 @@ class AccessControl {
* var assets = { notebook: "Mac", car: { brand: "Ford", model: "Mustang", year: 1970, color: "red" } };
*
* var filtered = AccessControl.filter(assets, [ "*", "!car.*", "car.model" ]);
* console.log(assets); // { notebook: "Mac", car: { model: "Mustang" } }
* console.log(filtered); // { notebook: "Mac", car: { model: "Mustang" } }
*
* filtered = AccessControl.filter(assets, "*"); // or AccessControl.filter(assets, ["*"]);
* console.log(assets); // { notebook: "Mac", car: { model: "Mustang" } }
* console.log(filtered); // { notebook: "Mac", car: { model: "Mustang" } }
*
* filtered = AccessControl.filter(assets); // or AccessControl.filter(assets, "");
* console.log(assets); // {}
* console.log(filtered); // {}
*/
static filter(data: any, attributes: string[]): any {
return utils.filterAll(data, attributes);
Expand Down

0 comments on commit d45534e

Please sign in to comment.