Check If Array Includes Array Methods In Typescript Compiler