MCPcopy Create free account
hub / github.com/angular/dev-infra / exclude

Method exclude

ng-dev/pullapprove/pullapprove_arrays.ts:24–26  ·  view source on GitHub ↗

Returns a new array which only includes files that did not match the given pattern.

(pattern: string)

Source from the content-addressed store, hash-verified

22
23 /** Returns a new array which only includes files that did not match the given pattern. */
24 exclude(pattern: string): PullApproveStringArray {
25 return new PullApproveStringArray(...this.filter((s) => !getOrCreateGlob(pattern).match(s)));
26 }
27}
28
29/**

Callers

nothing calls this directly

Calls 2

getOrCreateGlobFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected