How to return tuple in typescript

Tags:
Date:

Tuesday 02/08/2022

We can do something like this:

return [variable1, variable2, variable3, variable4] as const

© 2023 Vadim Alakhverdov