diff options
author | 2023-10-17 03:16:10 +0300 | |
---|---|---|
committer | 2023-10-16 17:16:10 -0700 | |
commit | 6504bfef74b552aa834324adfe102c9ba0193039 (patch) | |
tree | b9490eca6a27fa31109e64217bb9022f35700a8d | |
parent | 220cb0eb941d43f7ea815e46fe50b5c621782be4 (diff) | |
download | bun-6504bfef74b552aa834324adfe102c9ba0193039.tar.gz bun-6504bfef74b552aa834324adfe102c9ba0193039.tar.zst bun-6504bfef74b552aa834324adfe102c9ba0193039.zip |
Simplify getting Set of extentions (#4975)
-rw-r--r-- | misctools/mime.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misctools/mime.js b/misctools/mime.js index 27b58a5b7..0ff968918 100644 --- a/misctools/mime.js +++ b/misctools/mime.js @@ -15,8 +15,8 @@ for (let key of Object.keys(json).sort()) { } const withExtensions = [ - ...new Set([ - ...Object.keys(json) + ...new Set( + Object.keys(json) .filter(key => { return !!json[key]?.extensions?.length; }) @@ -26,7 +26,7 @@ const withExtensions = [ }); }) .sort(), - ]), + ), ]; all += "\n"; |