# isCaseInsensitiveContainsAny method

bool isCaseInsensitiveContainsAny(

1. String b

)

Checks if a contains b or b contains a (Treating or interpreting upper- and lowercase letters as being the same).

## Implementation

    bool isCaseInsensitiveContainsAny(String b) {
      String lowA = toLowerCase();
      String lowB = b.toLowerCase();

      return lowA.contains(lowB) || lowB.contains(lowA);
    }