title: Lodash: _.has check for keys returning false
body: <p>I have this object:</p>
  
  <p><code>values = {page: "0", length: "12"}</code></p>
  
  <p>I want to check if the keys have <code>page</code> and <code>length</code> so I came up with this solution using <code>Lodash</code>:</p>
  
  <p><code>has(values, 'page') &amp;&amp; has(values, 'length')</code></p>
  
  <p>This return true as expected but I wanted to use a more shorthand approach and tried:</p>
  
  <p><code>has(values, ['page', 'length]')</code> but this returns false. Any idea why?</p>
  
  <p><a href="https://lodash.com/docs/4.17.10#has" rel="nofollow noreferrer">https://lodash.com/docs/4.17.10#has</a></p>
  
  <p><code>Lodash</code> has an example where this returns true:</p>
  
  <pre><code>var object = { 'a': { 'b': 2 } };
  
  _.has(object, 'a');
  // =&gt; true
  
  _.has(object, 'a.b');
  // =&gt; true
  
  _.has(object, ['a', 'b']);
  // =&gt; true
  </code></pre>
  
  <p>Is there a more elegant way to check for the keys in my object or should I just keep my solution the way it is: <code>has(values, 'page') &amp;&amp; has(values, 'length')</code>?</p>