#AsNever
I would just type the param as Readonly<Date[]>. The function can still receive a mutable array (although the array should perhaps just be readonly to begin with).

I have a hard time imagining a use for asNever that I couldn't refactor into something more conventional.
December 15, 2024 at 12:22 AM
Markle line went up and sold out instantaneously .....such a transparent ploy yet people fall for it. #Bots #ScarcityMarketing #AsNever #ThereWasNeverAnyProduct
April 3, 2025 at 2:04 AM