title: TS error: Cannot invoke an expression whose type lacks a call signature
body: <p>I am using lodash on a TypeScript app and I am getting an error</p>
  
  <blockquote>
    <p>Cannot invoke an expression whose type lacks a call signature. Type '((callbackfn: (value: never, index: number, array: never[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: Phone, index: number, array: Phone[]) => U, thisArg?: any) => U[])' has no compatible call signatures.ts(2349)</p>
  </blockquote>
  
  <p>Function:</p>
  
  <pre><code>        {get(userInfo, 'phone', []).map((item, index) =&gt; (
            &lt;View style={styles.userPhone} key={index}&gt;
              {item.type === 'Desk' &amp;&amp; &lt;Text&gt;Phone: {item.num}&lt;/Text&gt;}
              {item.type === 'Mobile' &amp;&amp; &lt;Text&gt;Mobile: {item.num}&lt;/Text&gt;}
            &lt;/View&gt;
          ))}
  </code></pre>
  
  <p>If I do this it works correctly:</p>
  
  <pre><code>        {userInfo.phone &amp;&amp;
             userInfo.phone.map((item, index) =&gt; (
              &lt;View style={styles.userPhone} key={index}&gt;
                {item.type === 'Desk' &amp;&amp; &lt;Text&gt;Phone: {item.num}&lt;/Text&gt;}
                {item.type === 'Mobile' &amp;&amp; &lt;Text&gt;Mobile: {item.num}&lt;/Text&gt;}
              &lt;/View&gt;
          ))}
  </code></pre>
  
  <p>So what could I be missing?</p>
  
  <p>PS:
  Lodash <code>get</code> docs: <a href="https://lodash.com/docs/#get" rel="nofollow noreferrer">https://lodash.com/docs/#get</a></p>
  
  <p>I have installed types package for lodash -> <a href="https://www.npmjs.com/package/@types/lodash" rel="nofollow noreferrer">https://www.npmjs.com/package/@types/lodash</a></p>
  
  <p>The thing is that I can not do it like this <code>{userInfo.phone &amp;&amp; userInfo.phone.map(...)}</code> because we are enforced to use <code>get</code> for this type of things.</p>