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

Method include

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

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

(pattern: string)

Source from the content-addressed store, hash-verified

17export class PullApproveStringArray extends Array<string> {
18 /** Returns a new array which only includes files that match the given pattern. */
19 include(pattern: string): PullApproveStringArray {
20 return new PullApproveStringArray(...this.filter((s) => getOrCreateGlob(pattern).match(s)));
21 }
22
23 /** Returns a new array which only includes files that did not match the given pattern. */
24 exclude(pattern: string): PullApproveStringArray {

Callers

nothing calls this directly

Calls 2

getOrCreateGlobFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected