MCPcopy Index your code
hub / github.com/angular/angular / numOfWhiteSpaceLeadingChars

Function numOfWhiteSpaceLeadingChars

packages/core/test/render3/utils.ts:45–47  ·  view source on GitHub ↗

* Returns number of whitespace leading characters. * * @param text

(text: string)

Source from the content-addressed store, hash-verified

43 * @param text
44 */
45function numOfWhiteSpaceLeadingChars(text: string): number {
46 return text.match(/^\s*/)![0].length;
47}
48
49/**
50 * Jasmine AsymmetricMatcher which can be used to assert `.debug` properties.

Callers 1

dedentFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…