title: lodash dynamic filter with multicheck
body: <p>I have a Multi check. I need a filter show with one option, two options, or three options.</p>
  <p>This is the option:</p>
  <p><a href="https://i.stack.imgur.com/9uxEC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9uxEC.png" alt="enter image description here" /></a></p>
  <p>The component has an array. The array is dynamic:</p>
  <pre><code>0: &quot;Active&quot;
  ​
  1: &quot;Inactive&quot;
  ​
  2: &quot;Terminated&quot;
  </code></pre>
  <p>Then for the filter, I use <code>lodash</code> inside for</p>
  <pre><code>for(var i = 0; i &lt; dataFilter.length; i++) 
            {
                console.log(dataFilter[i]);
                const results = _.filter(res, function(item) {
                   return (item.project === dataFilter[i]);
                });
                this.items = results;
            }
  </code></pre>
  <p>This is the example <code>res</code></p>
  <pre><code>{
      &quot;id&quot;: &quot;1&quot;,
      &quot;createdOn&quot;: &quot;2020-05-01T23:10:13.000Z&quot;,
      &quot;createdBy&quot;: 'Juan',
      &quot;Title&quot;: &quot;testing&quot;,
      &quot;project&quot;: &quot;Active&quot;,
    }
  </code></pre>
  <p>Example the <code>dataFilter</code></p>
  <pre><code>Array [ &quot;Active&quot;, &quot;Inactive&quot; ]
  </code></pre>
  <p>But always replace and the filter just filter for one option but sometimes need show filter for 2 o 3 options.</p>
  <p><code>Lodash</code> has another way to the filter in this case or Maybe have another idea?</p>