Typescript Check If Any Value In Array Is Contiguous