 (isArray(x)){
    console.log(&quot;I am an array&quot;);
} else {
    console.log(&quot;I am not an array&quot;);
}
</code></pre>
<h2 id="isfunc">isFunc<a class="headerlink" href="#isfunc" title="Permanent link">&para;</a></h2>
<p>Determines if a supplied variable represents a function.</p>
<pre><code class="language-TypeScript">import { isFunc } from &quot;@pnp/core&quot;;

public testFunction() {
    console.log(&quot;test function&quot;);
    return
}

if (isFunc(testFunction)){
    console.log(&quot;t