title: How to filter array of object by multiples array/objects values
body: <p>I need to filter an array of objects, like this:</p>
  
  <pre><code>var models = [
      {
        "family": "Applique",
        "power":"8",
        "volt":"12",
        "color":"4100",
        "type":"E27",
        "ip":"20",
        "dimensions":"230x92"
      },
      {
        "family": "Lanterne",
        "power":"20",
        "volt":"230",
        "color":"2700",
        "type":"R7S",
        "ip":"44",
        "dimensions":"230x92"
      },
      {
        "family": "Applique",
        "power":"50",
        "volt":"230",
        "color":"",
        "type":"GU10",
        "ip":"20",
        "dimensions":"227x227"
      }
  ]
  </code></pre>
  
  <p>Based on a object like this:</p>
  
  <pre><code>var filter = {
     "family":[
        "Applique", "Faretto", "Lanterne"
     ],
     "power":{
        "less":[
            "30"
        ],
        "greater":[
  
        ],
        "equal":[
  
        ]
     },
     "volt":[
        "12", "230"
     ],
     "color":[
  
     ],
     "type":[
  
     ],   
     "ip":[
        "20"
     ]
     "dimensions":[
  
     ],
  }
  </code></pre>
  
  <p>So, in this case, the result could be:</p>
  
  <pre><code>{
    "family": "Applique",
    "power":"8",
    "volt":"12",
    "color":"4100",
    "type":"E27",
    "ip":"20",
    "dimensions":"230x92"
  }
  </code></pre>
  
  <p>I've already read this other link: <a href="https://stackoverflow.com/questions/18719383/how-to-filter-an-array-object-by-checking-multiple-values">How to filter an array/object by checking multiple values</a>, but I can not seem to adapt it to my case.</p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT: The condition on "power" property is not requested now</p>
  
  <p>EDIT 2: Sorry, I've forgot to indicate that filter object can have multiple values for single property, like this:</p>
  
  <pre><code>var filter = {
     "family":[
         "Applique", "Faretto", "Lanterne"
     ],
     ...
     "volt":[
          "12", "230"
     ],
     ...
  }
  </code></pre>