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

Function isBlank

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

* Tests to see if the line is blank. * * A blank line is such which contains only whitespace. * @param text string to test for blank-ness.

(text: string)

Source from the content-addressed store, hash-verified

34 * @param text string to test for blank-ness.
35 */
36function isBlank(text: string): boolean {
37 return /^\s*$/.test(text);
38}
39
40/**
41 * Returns number of whitespace leading characters.

Callers 1

dedentFunction · 0.70

Calls 1

testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…