Add picture wall filtering and bump nuxt

This commit is contained in:
2025-10-16 20:30:05 +02:00
parent b43e8b9219
commit c80fc61539
6 changed files with 742 additions and 116 deletions
+11
View File
@@ -0,0 +1,11 @@
/**
* Returns a filter lambda to be used in array.filter() to only allow the
* first occurrence of duplicate values.
* @param isEqual Custom equality check, defaults to `a === b`
*/
export function unique<E>(
isEqual: (a: E, b: E) => boolean = (a, b) => a === b
) {
return (self: E, index: number, arr: ReadonlyArray<E>) =>
arr.findIndex((v) => isEqual(v, self)) === index;
}