MCPcopy Create free account
hub / github.com/angular/angular / validate

Method validate

packages/benchpress/src/validator/size_validator.ts:33–39  ·  view source on GitHub ↗
(completeSample: MeasureValues[])

Source from the content-addressed store, hash-verified

31 }
32
33 override validate(completeSample: MeasureValues[]): MeasureValues[] | null {
34 if (completeSample.length >= this._sampleSize) {
35 return completeSample.slice(completeSample.length - this._sampleSize, completeSample.length);
36 } else {
37 return null;
38 }
39 }
40}

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected