Check If Type Is Array Typescript