Typescript Array Contains String Javascript Functions Types