Typeguard for array
I have difficulties with typescript. One of my variable can have a string or array of string value. I would like to use a typeguard to use join function only on arrays. It looks like it ignores my condition.
I have difficulties with typescript. One of my variable can have a string or array of string value. I would like to use a typeguard to use join function only on arrays. It looks like it ignores my condition.