Define Type Checking Javascript Array Contains String