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

Function getSortedClassName

packages/core/testing/src/styling.ts:15–19  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

13 * @returns Returns element classes in form of a stable (sorted) string.
14 */
15export function getSortedClassName(element: Element): string {
16 const names: string[] = Object.keys(getElementClasses(element));
17 names.sort();
18 return names.join(' ');
19}
20
21/**
22 * Returns element classes in form of a map.

Callers 2

styling_spec.tsFile · 0.90

Calls 3

getElementClassesFunction · 0.85
keysMethod · 0.65
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…