Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/dev-infra
/ compareString
Function
compareString
ng-dev/utils/locale.ts:16–18 ·
view source on GitHub ↗
(a: string, b: string)
Source
from the content-addressed store, hash-verified
14
* whether `a` should be positioned before `b` or the other way around.
15
*/
16
export
function
compareString(a: string, b: string): number {
17
return
a.localeCompare(b, defaultLocale);
18
}
Callers
1
RenderContext
Class · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected