mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
Convert common dir to TS (#2580)
* Convert common dir to TS * Lint * Update setup-leaflet-map.ts
This commit is contained in:
10
src/common/string/compare.ts
Normal file
10
src/common/string/compare.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export default (a, b) => {
|
||||
if (a < b) {
|
||||
return -1;
|
||||
}
|
||||
if (a > b) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user