ljosberinn/eslint-config-galex

View on GitHub
src/utils/array.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export const uniqueArrayEntries = (arr: unknown[]): string[] =>
  [...new Set(arr)].filter(
    (dataset): dataset is string => typeof dataset === 'string'
  );