Skip to content

Commit

Permalink
docs(common, signal-store): add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mini-rx committed Jan 15, 2024
1 parent cd90166 commit 6008062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/common/src/lib/sort-extensions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { StoreExtension } from './models';

export function sortExtensions<T extends StoreExtension>(extensions: T[]): T[] {
// TODO can be `toSorted` (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted) when available in TS
return [...extensions].sort((a, b) => {
return a.sortOrder - b.sortOrder;
});
Expand Down
1 change: 1 addition & 0 deletions libs/signal-store/src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO not needed anymore in Angular 17
export function defaultSignalEquality(a: any, b: any) {
return a === b;
}

0 comments on commit 6008062

Please sign in to comment.