MCPcopy
hub / github.com/angular/angular / renderStringify

Function renderStringify

packages/core/src/render3/util/stringify_utils.ts:19–25  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

17 * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.
18 */
19export function renderStringify(value: unknown): string {
20 if (typeof value === 'string') return value;
21 if (value == null) return '';
22 // Use `String` so that it invokes the `toString` method of the value. Note that this
23 // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).
24 return String(value);
25}
26
27/**
28 * Used to stringify a value so that it can be displayed in an error message.

Callers 15

collectPropertyBindingsFunction · 0.90
ɵɵsanitizeHtmlFunction · 0.90
ɵɵsanitizeStyleFunction · 0.90
ɵɵsanitizeUrlFunction · 0.90
applyUpdateOpCodesFunction · 0.90
setElementAttributeFunction · 0.90
ɵɵinterpolateFunction · 0.90
interpolationVFunction · 0.90
interpolation1Function · 0.90
interpolation2Function · 0.90
interpolation3Function · 0.90
interpolation4Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…