MCPcopy
hub / github.com/benjamine/jsondiffpatch / before

Method before

packages/jsondiffpatch/src/pipe.ts:78–82  ·  view source on GitHub ↗
(filterName: string, ...params: Filter<TContext>[])

Source from the content-addressed store, hash-verified

76 }
77
78 before(filterName: string, ...params: Filter<TContext>[]) {
79 const index = this.indexOf(filterName);
80 this.filters.splice(index, 0, ...params);
81 return this;
82 }
83
84 replace(filterName: string, ...params: Filter<TContext>[]) {
85 const index = this.indexOf(filterName);

Callers 2

index.spec.tsFile · 0.80
numeric-plugin.tsFile · 0.80

Calls 1

indexOfMethod · 0.95

Tested by

no test coverage detected