title: How to create NSPredicate with array contains element
body: <p>I simply have <code>Address</code> entity with property <code>favourites</code> of type <code>[String]</code></p>
  <p>Address</p>
  <pre><code>@objc(Address)
  class Address: NSManagedObject, Observer {
      @NSManaged var favourites: [String]
  }
  </code></pre>
  <p>Suppose I have some addresses:</p>
  <pre><code>1: favourites: [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]
  2: favourites: [&quot;b&quot;, &quot;c&quot;]
  3: favourites: [&quot;a&quot;, &quot;c&quot;]
  4: favourites: [&quot;a&quot;]
  5: favourites: [&quot;b&quot;]
  </code></pre>
  <p>Now I need to fetch all addresses with <code>a</code> inside <code>favourites</code>. SO the result should be: <code>1, 3, 4</code></p>
  <p>In other words I need to check if <code>ANY element</code> in array <code>is equal</code> to specific string then object should be returned.</p>
  <p>The following doesn't work:</p>
  <pre><code>NSPredicate(format: &quot;favourites CONTAINS %@&quot;, &quot;a&quot;)
  </code></pre>
  <p>This is how it is defined in <code>xcdatamodel</code>:</p>
  <p><a href="https://i.stack.imgur.com/iskki.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iskki.png" alt="enter image description here" /></a></p>