diff options
| author | ST-DDT <[email protected]> | 2022-03-15 19:16:56 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-15 19:16:56 +0100 |
| commit | 5cb74b1bf31f44311b4ee54ea320b81f68879f07 (patch) | |
| tree | bfe4e31ed4384be8b7b47826cf1ceb98227e9100 /src/system.ts | |
| parent | 09487b6b3a6e6cc3de0303851b9913ecdf1390dc (diff) | |
| download | faker-5cb74b1bf31f44311b4ee54ea320b81f68879f07.tar.xz faker-5cb74b1bf31f44311b4ee54ea320b81f68879f07.zip | |
chore: fix some lint warnings (#613)
Co-authored-by: Shinigami <[email protected]>
Diffstat (limited to 'src/system.ts')
| -rw-r--r-- | src/system.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/system.ts b/src/system.ts index 33413a23..afaed741 100644 --- a/src/system.ts +++ b/src/system.ts @@ -14,6 +14,12 @@ const commonMimeTypes = [ 'text/html', ]; +/** + * Converts the given set to an array. + * + * @param set The set to convert. + */ +// TODO ST-DDT 2022-03-11: Replace with Array.from(Set) function setToArray<T>(set: Set<T>): T[] { // shortcut if Array.from is available if (Array.from) { |
