(pattern: string)
| 32 | */ |
| 33 | export class PullApproveGroupArray extends Array<PullApproveGroup> { |
| 34 | include(pattern: string): PullApproveGroupArray { |
| 35 | return new PullApproveGroupArray(...this.filter((s) => s.groupName.match(pattern))); |
| 36 | } |
| 37 | |
| 38 | /** Returns a new array which only includes files that did not match the given pattern. */ |
| 39 | exclude(pattern: string): PullApproveGroupArray { |