title: Retrieving value from a module.exports array of objects, using wildcard like 'includes'
body: <p>Hi I have a module exports as such.</p>
  
  <pre><code>module.exports = {
  "Computer screen": 'phrase1',
  "Table height": 'phrase2',
  "Temperature": 'phrase3',
  };
  </code></pre>
  
  <p>And importing the file that has this using 'require' into a var called tries. Then I use the following code to search the module.exports. For example if searchQuery was "computer screen" then it would return 'phrase1'.</p>
  
  <pre><code>var tryThis = tries[searchQuery];
  </code></pre>
  
  <p>My question is how can i modify this so it searches for any line that contains the search query. For example searching 'table' would return 'phrase2'. </p>
  
  <p>Please help :) thanks ahead.</p>