Check Variable Is Array Typescript