79267512

Date: 2024-12-10 08:39:40
Score: 1
Natty:
Report link

I'd suggest to make a special type.

type LocalesArray = string[] & { default: string };
const array = ['en-US', 'en-GB', 'en-AU'] as LocalesArray;
array.default = 'en-US';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ilius33