Skip to content

Commit

Permalink
fix: πŸ› Unique
Browse files Browse the repository at this point in the history
  • Loading branch information
phun-ky committed Dec 5, 2023
1 parent e8f8a72 commit 5b90bd4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/classes/MoebiusPalettes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ export class MoebiusPalettes implements MoebiusPaletteInterface {
this.accents = new MoebiusAccentColors(this.colors, this.options);

this.all = [
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(this.accents as any).toArray(),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(this.colors as any).toArray()
].flat();
...new Set(
[
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(this.accents as any).toArray(),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
...(this.colors as any).toArray()
].flat()
)
];
}

/**
Expand Down

0 comments on commit 5b90bd4

Please sign in to comment.