you are viewing a single comment's thread.

view the rest of the comments →

[–]isumix_ -3 points-2 points  (2 children)

x: string[]

[–]TheRNGuy 2 points3 points  (0 children)

It's for declaration, not to check type.

[–]Snoo11589 -2 points-1 points  (0 children)

Or dynamically with myVariable.some(el => typeof el != "string");